IAIK PKCS#11 Provider API Documentation
version 1.6

Class PKCS11GCMParameterSpec

  extended by javax.crypto.spec.IvParameterSpec
      extended by iaik.pkcs.pkcs11.provider.ciphers.PKCS11GCMParameterSpec
All Implemented Interfaces:

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
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public PKCS11GCMParameterSpec(byte[] iv,
                              byte[] additionalData,
                              long tagBits)
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


public byte[] getAdditionalData()


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