public class LunaGcmParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
Constructor and Description |
---|
LunaGcmParameterSpec(byte[] iv,
byte[] aad,
int tagBits)
Sets the spec data
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAad() |
byte[] |
getDataEncoded() |
byte[] |
getIv() |
int |
getTagBits() |
void |
setAad(byte[] aad) |
void |
setIv(byte[] iv) |
java.lang.String |
toString() |
public LunaGcmParameterSpec(byte[] iv, byte[] aad, int tagBits)
iv
- The IV. If null, it's recorded as a 0-byte arrayaad
- The additional authentication data. If null, it's recorded as a 0-byte arraytagBits
- # of bits in the auth tag (max 128)public byte[] getIv()
public void setIv(byte[] iv)
public byte[] getAad()
public void setAad(byte[] aad)
public int getTagBits()
public byte[] getDataEncoded()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
Copyright 2014-2018 SafeNet. All rights reserved.