Top Fields Constructors Methods
org.bouncycastle.cms.jcajce

pack-priv Class CMSInputAEADDecryptor

extends Object
implements InputAEADDecryptor
Class Inheritance
All Implemented Interfaces
org.bouncycastle.operator.InputAEADDecryptor, org.bouncycastle.operator.AADProcessor, org.bouncycastle.operator.InputDecryptor
Imports
java.io.InputStream, .OutputStream, java.security.AccessController, .PrivilegedAction, javax.crypto.Cipher, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.cms.InputStreamWithMAC, org.bouncycastle.jcajce.io.CipherInputStream, org.bouncycastle.operator.InputAEADDecryptor

Field Summary

Modifier and TypeField and Description
private final AlgorithmIdentifier
private final Cipher
private InputStream

Constructor Summary

AccessConstructor and Description
pack-priv
CMSInputAEADDecryptor(AlgorithmIdentifier contentEncryptionAlgorithm, Cipher dataCipher)

Method Summary

Modifier and TypeMethod and Description
private static boolean
public OutputStream
getAADStream()

Implements org.bouncycastle.operator.AADProcessor.getAADStream.

Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.

public AlgorithmIdentifier
getAlgorithmIdentifier()

Implements org.bouncycastle.operator.InputDecryptor.getAlgorithmIdentifier.

Return the algorithm identifier describing the encryption algorithm and parameters this decryptor can process.

public InputStream
getInputStream(InputStream
InputStream containing encrypted input.
dataIn
)

Implements org.bouncycastle.operator.InputDecryptor.getInputStream.

Wrap the passed in input stream encIn, returning an input stream that decrypts what it reads from encIn before returning it.

public byte[]
getMAC()

Implements org.bouncycastle.operator.AADProcessor.getMAC.

Return the final value of AEAD cipher's MAC.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentEncryptionAlgorithmback to summary
private final AlgorithmIdentifier contentEncryptionAlgorithm
dataCipherback to summary
private final Cipher dataCipher
inputStreamback to summary
private InputStream inputStream

Constructor Detail

CMSInputAEADDecryptorback to summary
pack-priv CMSInputAEADDecryptor(AlgorithmIdentifier contentEncryptionAlgorithm, Cipher dataCipher)

Method Detail

checkForAEADback to summary
private static boolean checkForAEAD()
getAADStreamback to summary
public OutputStream getAADStream()

Implements org.bouncycastle.operator.AADProcessor.getAADStream.

Doc from org.bouncycastle.operator.AADProcessor.getAADStream.

Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.

Returns:OutputStream

a stream for collecting associated data.

getAlgorithmIdentifierback to summary
public AlgorithmIdentifier getAlgorithmIdentifier()

Implements org.bouncycastle.operator.InputDecryptor.getAlgorithmIdentifier.

Doc from org.bouncycastle.operator.InputDecryptor.getAlgorithmIdentifier.

Return the algorithm identifier describing the encryption algorithm and parameters this decryptor can process.

Returns:AlgorithmIdentifier

algorithm oid and parameters.

getInputStreamback to summary
public InputStream getInputStream(InputStream dataIn)

Implements org.bouncycastle.operator.InputDecryptor.getInputStream.

Doc from org.bouncycastle.operator.InputDecryptor.getInputStream.

Wrap the passed in input stream encIn, returning an input stream that decrypts what it reads from encIn before returning it.

Parameters
dataIn:InputStream

InputStream containing encrypted input.

Returns:InputStream

an decrypting InputStream

getMACback to summary
public byte[] getMAC()

Implements org.bouncycastle.operator.AADProcessor.getMAC.

Doc from org.bouncycastle.operator.AADProcessor.getMAC.

Return the final value of AEAD cipher's MAC.

Returns:byte[]

MAC value for the AEAD cipher.