IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.ciphers
Class PKCS11GCMParameterSpec

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

public class PKCS11GCMParameterSpec
extends javax.crypto.spec.IvParameterSpec

Parameter class for AES in GCM Mode.


Constructor Summary
PKCS11GCMParameterSpec(byte[] iv, byte[] additionalData, long tagBits)
           
 
Method Summary
 byte[] getAdditionalData()
           
 long getTagBits()
           
 
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

PKCS11GCMParameterSpec

public PKCS11GCMParameterSpec(byte[] iv,
                              byte[] additionalData,
                              long tagBits)
Parameters:
iv - The initialization vector. The length of the initialization vector can be any number between 1 and 2^56. 96-bit (12-byte) IV values can be processed more efficiently, so that length is recommended for situations in which efficiency is critical
additionalData - Additional data. This data is authenticated but not encrypted.
tagBits - Length of the authentication tag (output following cipher text) in bits. Can be between 0 and 128
Method Detail

getAdditionalData

public byte[] getAdditionalData()

getTagBits

public long getTagBits()

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