| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ASN1ObjectIdentifier | |
| private EnvelopedDataHelper | |
| private static final SecretKeySizeProvider | |
| private final int | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public OutputEncryptor | |
| public BcCMSContentEncryptorBuilder |
| encryptionOID | back to summary |
|---|---|
| private final ASN1ObjectIdentifier encryptionOID | |
| helper | back to summary |
|---|---|
| private EnvelopedDataHelper helper | |
| KEY_SIZE_PROVIDER | back to summary |
|---|---|
| private static final SecretKeySizeProvider KEY_SIZE_PROVIDER | |
| keySize | back to summary |
|---|---|
| private final int keySize | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| BcCMSContentEncryptorBuilder | back to summary |
|---|---|
| public BcCMSContentEncryptorBuilder(ASN1ObjectIdentifier encryptionOID) | |
| BcCMSContentEncryptorBuilder | back to summary |
|---|---|
| public BcCMSContentEncryptorBuilder(ASN1ObjectIdentifier encryptionOID, int keySize) | |
| build | back to summary |
|---|---|
| public OutputEncryptor build() throws CMSException | |
| setSecureRandom | back to summary |
|---|---|
| public BcCMSContentEncryptorBuilder setSecureRandom(SecureRandom random) | |
| Modifier and Type | Field and Description |
|---|---|
| private AEADBlockCipher |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | write(byte[]
the data. buf, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public void | write(int
the b)byte.Implements abstract java. |
| cipher | back to summary |
|---|---|
| private AEADBlockCipher cipher | |
| AADStream | back to summary |
|---|---|
| public AADStream(AEADBlockCipher cipher) | |
| write | back to summary |
|---|---|
| public void write(byte[] buf, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| Modifier and Type | Field and Description |
|---|---|
| private AEADBlockCipher | |
| private MacCaptureStream |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public OutputStream | getAADStream()
Implements org. |
| private AEADBlockCipher | |
| public byte[] | getMAC()
Implements org. |
| public OutputStream | getOutputStream(OutputStream
output stream for encrypted output. dOut)Overrides org. Implements org. |
| aeadCipher | back to summary |
|---|---|
| private AEADBlockCipher aeadCipher | |
| macOut | back to summary |
|---|---|
| private MacCaptureStream macOut | |
| CMSAuthOutputEncryptor | back to summary |
|---|---|
| pack-priv CMSAuthOutputEncryptor(ASN1ObjectIdentifier encryptionOID, int keySize, SecureRandom random) throws CMSException | |
| getAADStream | back to summary |
|---|---|
| public OutputStream getAADStream() Implements org. Doc from org. Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.
| |
| getCipher | back to summary |
|---|---|
| private AEADBlockCipher getCipher() | |
| getMAC | back to summary |
|---|---|
| public byte[] getMAC() Implements org. Doc from org. Return the final value of AEAD cipher's MAC.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream(OutputStream dOut) Overrides org. Implements org. Doc from org. Wrap the passed in output stream encOut, returning an output stream that encrypts anything passed in before sending on to encOut.
| |
| Modifier and Type | Field and Description |
|---|---|
| private AlgorithmIdentifier | |
| protected Object | |
| private KeyParameter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public AlgorithmIdentifier | getAlgorithmIdentifier()
Implements org. |
| public GenericKey | getKey()
Implements org. |
| public OutputStream | getOutputStream(OutputStream
output stream for encrypted output. dOut)Implements org. |
| algorithmIdentifier | back to summary |
|---|---|
| private AlgorithmIdentifier algorithmIdentifier | |
| cipher | back to summary |
|---|---|
| protected Object cipher | |
| encKey | back to summary |
|---|---|
| private KeyParameter encKey | |
| CMSOutputEncryptor | back to summary |
|---|---|
| pack-priv CMSOutputEncryptor(ASN1ObjectIdentifier encryptionOID, int keySize, SecureRandom random) throws CMSException | |
| getAlgorithmIdentifier | back to summary |
|---|---|
| public AlgorithmIdentifier getAlgorithmIdentifier() Implements org. Doc from org. Return the algorithm identifier describing the encryption algorithm and parameters this encryptor uses.
| |
| getKey | back to summary |
|---|---|
| public GenericKey getKey() Implements org. Doc from org. Return the key used for encrypting the output.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream(OutputStream dOut) Implements org. Doc from org. Wrap the passed in output stream encOut, returning an output stream that encrypts anything passed in before sending on to encOut.
| |