IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.ciphers
Class PKCS11CCMParameterSpec

java.lang.Object
  extended by javax.crypto.spec.IvParameterSpec
      extended by iaik.pkcs.pkcs11.provider.ciphers.PKCS11CCMParameterSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec

public class PKCS11CCMParameterSpec
extends javax.crypto.spec.IvParameterSpec

Parameter class for AES in CCM Mode.


Constructor Summary
PKCS11CCMParameterSpec(byte[] nonce, byte[] additionalData, long dataLen, long macLen)
           
 
Method Summary
 byte[] getAdditionalData()
           
 long getDataLen()
           
 long getMacLen()
           
 
Methods inherited from class javax.crypto.spec.IvParameterSpec
getIV
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS11CCMParameterSpec

public PKCS11CCMParameterSpec(byte[] nonce,
                              byte[] additionalData,
                              long dataLen,
                              long macLen)
Parameters:
nonce - The nonce. Length of the nonce between 7 and 13
additionalData - Additional data. This data is authenticated but not encrypted.
dataLen - Length of the data to be en/decrypted.
macLen - Length of the MAC in bytes. Valid values are 4, 6, 8, 10, 12, 14 and 16.
Method Detail

getDataLen

public long getDataLen()

getMacLen

public long getMacLen()

getAdditionalData

public byte[] getAdditionalData()

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