Lines Matching refs:key

307      * Initializes this cipher with a key and a source
311 * encryption, decryption, key wrapping or key unwrapping, depending on
315 * derived from the given <code>key</code>, the underlying cipher
318 * initialized for encryption or key wrapping, and raise an
320 * initialized for decryption or key unwrapping.
343 * @param key the encryption key
346 * @exception InvalidKeyException if the given key is inappropriate for
349 * determined from the given key.
351 protected abstract void engineInit(int opmode, Key key,
356 * Initializes this cipher with a key, a set of
360 * encryption, decryption, key wrapping or key unwrapping, depending on
367 * initialized for encryption or key wrapping, and raise an
369 * initialized for decryption or key unwrapping.
392 * @param key the encryption key
396 * @exception InvalidKeyException if the given key is inappropriate for
403 protected abstract void engineInit(int opmode, Key key,
409 * Initializes this cipher with a key, a set of
413 * encryption, decryption, key wrapping or key unwrapping, depending on
420 * initialized for encryption or key wrapping, and raise an
422 * initialized for decryption or key unwrapping.
445 * @param key the encryption key
449 * @exception InvalidKeyException if the given key is inappropriate for
456 protected abstract void engineInit(int opmode, Key key,
844 * Wrap a key.
848 * It may be overridden by a provider to wrap a key.
851 * if the given key cannot be wrapped.
855 * @param key the key to be wrapped.
857 * @return the wrapped key.
861 * key to be wrapped is not a multiple of the block size.
864 * wrap the key with this cipher (e.g., a hardware protected key is
867 protected byte[] engineWrap(Key key)
874 * Unwrap a previously wrapped key.
878 * It may be overridden by a provider to unwrap a previously wrapped key.
880 * the given wrapped key cannot be unwrapped.
884 * @param wrappedKey the key to be unwrapped.
887 * key.
889 * @param wrappedKeyType the type of the wrapped key. This is one of
893 * @return the unwrapped key.
900 * represent a wrapped key of type <code>wrappedKeyType</code> for
912 * Returns the key size of the given key object in bits.
917 * @param key the key object.
919 * @return the key size of the given key object.
921 * @exception InvalidKeyException if <code>key</code> is invalid.
923 protected int engineGetKeySize(Key key)