public class SSL3KeyAndMacDerivation extends PKCS11KeyDerivation
keyDerivationMechanism_
initialized_, keyGenerationSpec_, pkcs11OperationInitialized_, session_, tokenManager_, usedMechanismInfos_, usedMechanisms_
Constructor and Description |
---|
SSL3KeyAndMacDerivation() |
Modifier and Type | Method and Description |
---|---|
protected javax.crypto.SecretKey |
engineGenerateKey()
performs key generation on token as usual.
|
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initializes this key derivator with given algorithm parameters and random seed.
|
protected java.lang.String |
getAlgorithmName()
Get the JCE algorithm name, e.g.
|
protected iaik.pkcs.pkcs11.Mechanism |
getMechanism()
Get the mechanism that this key generator uses.
|
protected iaik.pkcs.pkcs11.parameters.Parameters |
getParameters()
Gets the parameters that this key generator needs.
|
engineInit, engineInit, getUsedMechanismFeatures
finalize, finalizePkcs11Operation, getUsedMechanisms, initializePkcs11Operation, initializeSession, isSupportedBy
protected iaik.pkcs.pkcs11.Mechanism getMechanism()
PKCS11KeyGenerator
getMechanism
in class PKCS11KeyGenerator
protected java.lang.String getAlgorithmName()
PKCS11KeyGenerator
getAlgorithmName
in class PKCS11KeyGenerator
protected void engineInit(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
PKCS11KeyDerivation
engineInit
in class PKCS11KeyDerivation
params
- The algorithm parameters, which must be an instance of PKCS11KeyDerivationSpec and
must not be null.random
- This implementation ignores this parameter.java.security.InvalidAlgorithmParameterException
- if the given algorithm parameters do not match to this KeyGeneratorKeyGeneratorSpi.engineInit(AlgorithmParameterSpec, SecureRandom)
protected iaik.pkcs.pkcs11.parameters.Parameters getParameters()
PKCS11KeyDerivation
getParameters
in class PKCS11KeyDerivation
null
.protected javax.crypto.SecretKey engineGenerateKey()
IAIKPKCS11Ssl3KeyContainer
and returned to the caller.engineGenerateKey
in class PKCS11KeyDerivation
KeyGeneratorSpi.engineGenerateKey()
IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4