Top Inners Constructors Methods
org.bouncycastle.openpgp.operator.jcajce

public Class JceAEADCipherUtil

extends Object
Class Inheritance
Imports
java.security.InvalidAlgorithmParameterException, .InvalidKeyException, java.security.spec.AlgorithmParameterSpec, .InvalidParameterSpecException, javax.crypto.Cipher, .SecretKey, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .DEROctetString, .DERSequence, org.bouncycastle.jcajce.provider.symmetric.util.GcmSpecUtil, org.bouncycastle.jcajce.spec.AEADParameterSpec, org.bouncycastle.util.Arrays

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
setUpAeadCipher(Cipher aead, SecretKey secretKey, int mode, byte[] nonce, int aeadMacLen, byte[] aad)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JceAEADCipherUtilback to summary
public JceAEADCipherUtil()

Method Detail

setUpAeadCipherback to summary
pack-priv static void setUpAeadCipher(Cipher aead, SecretKey secretKey, int mode, byte[] nonce, int aeadMacLen, byte[] aad) throws InvalidKeyException, InvalidAlgorithmParameterException
org.bouncycastle.openpgp.operator.jcajce back to summary

pack-priv Class JceAEADCipherUtil.GCMParameters

extends ASN1Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private byte[]

Constructor Summary

AccessConstructor and Description
public
GCMParameters(byte[] nonce, int icvLen)

Method Summary

Modifier and TypeMethod and Description
public int
public byte[]
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

icvLenback to summary
private int icvLen
nonceback to summary
private byte[] nonce

Constructor Detail

GCMParametersback to summary
public GCMParameters(byte[] nonce, int icvLen)

Method Detail

getIcvLenback to summary
public int getIcvLen()
getNonceback to summary
public byte[] getNonce()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.