Lines Matching refs:key

78      * Constant indicating that the key to be unwrapped is a private key.
83 * Constant indicating that the key to be unwrapped is a public key.
88 * Constant indicating that the key to be unwrapped is a secret key.
93 * Constant for key unwrapping operation mode.
98 * Constant for key wrapping operation mode.
442 * Initializes this cipher instance with the specified key.
445 * encryption, decryption, key wrapping or key unwrapping) depending on
449 * that the specified key can not provide, the underlying implementation of
462 * @param key
463 * the input key for the operation.
465 * if the specified key can not be used to initialize this
468 public final void init(int opmode, Key key) throws InvalidKeyException {
475 init(opmode, key, sec_rand);
479 * Initializes this cipher instance with the specified key and a source of
483 * encryption, decryption, key wrapping or key unwrapping) depending on
487 * that the specified key can not provide, the underlying implementation of
500 * @param key
501 * the input key for the operation.
505 * if the specified key can not be used to initialize this
510 public final void init(int opmode, Key key, SecureRandom random)
519 spiImpl.engineInit(opmode, key, random);
524 * Initializes this cipher instance with the specified key and algorithm
528 * encryption, decryption, key wrapping or key unwrapping).
543 * @param key
544 * the input key for the operation.
548 * if the specified key can not be used to initialize this
554 public final void init(int opmode, Key key, AlgorithmParameterSpec params)
559 init(opmode, key, params, sec_rand);
563 * Initializes this cipher instance with the specified key, algorithm
567 * encryption, decryption, key wrapping or key unwrapping) depending on
584 * @param key
585 * the input key for the operation.
591 * if the specified key can not be used to initialize this
599 public final void init(int opmode, Key key, AlgorithmParameterSpec params,
612 spiImpl.engineInit(opmode, key, params, random);
617 * Initializes this cipher instance with the specified key and algorithm
621 * encryption, decryption, key wrapping or key unwrapping) depending on
638 * @param key
639 * the input key for the operation.
643 * if the specified key can not be used to initialize this
649 public final void init(int opmode, Key key, AlgorithmParameters params)
654 init(opmode, key, params, sec_rand);
658 * Initializes this cipher instance with the specified key, algorithm
662 * encryption, decryption, key wrapping or key unwrapping) depending on
678 * @param key
679 * the input key for the operation.
685 * if the specified key can not be used to initialize this
693 public final void init(int opmode, Key key, AlgorithmParameters params,
706 spiImpl.engineInit(opmode, key, params, random);
711 * Initializes this cipher instance with the public key from the specified
715 * encryption, decryption, key wrapping or key unwrapping) depending on
718 * It the type of the certificate is X.509 and the certificate has a <i>key
720 * opmode} has the be enabled for this key, otherwise an {@code
723 * If this cipher instance needs any algorithm parameters that the key in
739 * if the public key in the certificate can not be used to
751 * Initializes this cipher instance with the public key from the specified
755 * encryption, decryption, key wrapping or key unwrapping) depending on
758 * It the type of the certificate is X.509 and the certificate has a <i>key
760 * opmode} has the be enabled for this key, otherwise an {@code
763 * If this cipher instance needs any algorithm parameters that the key in
782 * if the public key in the certificate can not be used to
1285 * Wraps a key using this cipher instance.
1287 * @param key
1288 * the key to wrap.
1289 * @return the wrapped key.
1294 * if this cipher instance can not wrap this key.
1298 public final byte[] wrap(Key key) throws IllegalBlockSizeException,
1304 return spiImpl.engineWrap(key);
1308 * Unwraps a key using this cipher instance.
1311 * the wrapped key to unwrap.
1313 * the algorithm for the wrapped key.
1315 * the type of the wrapped key (one of: {@code SECRET_KEY
1317 * @return the unwrapped key
1319 * if the {@code wrappedKey} can not be unwrapped to a key of
1323 * if no provider can be found that can create a key of type
1340 * Returns the maximum key length for the specified transformation.
1344 * @return the maximum key length, currently {@code Integer.MAX_VALUE}.