IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keygenerators
Class PKCS11AesCbcKeyDerivationSpec

java.lang.Object
  extended by iaik.pkcs.pkcs11.provider.spec.PKCS11Spec
      extended by iaik.pkcs.pkcs11.provider.keygenerators.PKCS11KeyGenerationSpec
          extended by iaik.pkcs.pkcs11.provider.keygenerators.PKCS11KeyDerivationSpec
              extended by iaik.pkcs.pkcs11.provider.keygenerators.PKCS11EcbModeKeyDerivationSpec
                  extended by iaik.pkcs.pkcs11.provider.keygenerators.PKCS11AesCbcKeyDerivationSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec, java.security.spec.KeySpec

public class PKCS11AesCbcKeyDerivationSpec
extends PKCS11EcbModeKeyDerivationSpec

Has to be used for specifying a data-blob which is then encrypted by the given base key to form a new key as specified in the keyTemplate. This Spec is used by the AES key derivation mechanisms in CBC mode.


Field Summary
 
Fields inherited from class iaik.pkcs.pkcs11.provider.spec.PKCS11Spec
USE_PUBLIC_SESSION, USE_READ_ONLY_SESSION, USE_READ_WRITE_SESSION, USE_USER_SESSION
 
Constructor Summary
PKCS11AesCbcKeyDerivationSpec(iaik.pkcs.pkcs11.objects.SecretKey baseKey, byte[] data, byte[] iv, iaik.pkcs.pkcs11.objects.SecretKey keyTemplate)
          Instantiates a spec.
PKCS11AesCbcKeyDerivationSpec(iaik.pkcs.pkcs11.objects.SecretKey baseKey, byte[] data, iaik.pkcs.pkcs11.objects.SecretKey keyTemplate)
          Instantiates a new spec.
PKCS11AesCbcKeyDerivationSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.SecretKey baseKey, byte[] data, byte[] iv, iaik.pkcs.pkcs11.objects.SecretKey keyTemplate, boolean useROSession, boolean useUserSession)
          Deprecated.  
PKCS11AesCbcKeyDerivationSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.SecretKey baseKey, byte[] data, iaik.pkcs.pkcs11.objects.SecretKey keyTemplate, boolean useROSession, boolean useUserSession)
          Deprecated.  
 
Method Summary
 byte[] getIv()
          Gets the iv.
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keygenerators.PKCS11EcbModeKeyDerivationSpec
getData
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keygenerators.PKCS11KeyDerivationSpec
getBaseKey
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keygenerators.PKCS11KeyGenerationSpec
getKeyTemplate
 
Methods inherited from class iaik.pkcs.pkcs11.provider.spec.PKCS11Spec
getPin, getTokenManager, isUseAnonymousRole, isUseROSession, isUseRwSession, isUseSORole, isUseUserRole, isUseUserSession, setPin, setTokenManager, setUseAnonymousRole, setUseSORole, setUseUserRole
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS11AesCbcKeyDerivationSpec

public PKCS11AesCbcKeyDerivationSpec(TokenManager tokenManager,
                                     iaik.pkcs.pkcs11.objects.SecretKey baseKey,
                                     byte[] data,
                                     iaik.pkcs.pkcs11.objects.SecretKey keyTemplate,
                                     boolean useROSession,
                                     boolean useUserSession)
Deprecated. 

Instantiates a new spec. Defaults the IV of the encryption operation to 0.

Parameters:
tokenManager - the token manager
baseKey - the base key
keyTemplate - the key template
data - the data
useROSession - the use ro session
useUserSession - the use user session

PKCS11AesCbcKeyDerivationSpec

public PKCS11AesCbcKeyDerivationSpec(iaik.pkcs.pkcs11.objects.SecretKey baseKey,
                                     byte[] data,
                                     iaik.pkcs.pkcs11.objects.SecretKey keyTemplate)
Instantiates a new spec. Defaults the IV of the encryption operation to 0.

Parameters:
baseKey - the base key
keyTemplate - the key template
data - the data

PKCS11AesCbcKeyDerivationSpec

public PKCS11AesCbcKeyDerivationSpec(TokenManager tokenManager,
                                     iaik.pkcs.pkcs11.objects.SecretKey baseKey,
                                     byte[] data,
                                     byte[] iv,
                                     iaik.pkcs.pkcs11.objects.SecretKey keyTemplate,
                                     boolean useROSession,
                                     boolean useUserSession)
Deprecated. 

Instantiates a spec.

Parameters:
tokenManager - the token manager
baseKey - the base key
data - the data
iv - the iv
keyTemplate - the key template
useROSession - the use ro session
useUserSession - the use user session

PKCS11AesCbcKeyDerivationSpec

public PKCS11AesCbcKeyDerivationSpec(iaik.pkcs.pkcs11.objects.SecretKey baseKey,
                                     byte[] data,
                                     byte[] iv,
                                     iaik.pkcs.pkcs11.objects.SecretKey keyTemplate)
Instantiates a spec.

Parameters:
baseKey - the base key
data - the data
iv - the iv
keyTemplate - the key template
Method Detail

getIv

public byte[] getIv()
Gets the iv.

Returns:
the iv

IAIK PKCS#11 Provider API Documentation
version 1.6

IAIK JavaSecurity Website http://jce.iaik.tugraz.at/

IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2004, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.
version 1.6