Top Description Methods
org.bouncycastle.crypto

public Interface SymmetricOperatorFactory<T extends Parameters>

Known Direct Implementers
org.bouncycastle.crypto.fips.FipsSymmetricOperatorFactory, org.bouncycastle.crypto.general.GuardedSymmetricOperatorFactory, org.bouncycastle.crypto.general.GuardedSymmetricStreamOperatorFactory
Type Parameters
<T>
the parameters type for the operators the factory creates.

Interface describing an operator factory that creates operators for doing encryption and decryption using symmetric ciphers.

Method Summary

Modifier and TypeMethod and Description
public InputDecryptor<T>

Returns:

an InputDecryptor.
createInputDecryptor
(SymmetricKey
the key to initialize the encryptor with.
key
,
T
the parameters to use to initialize the encryptor.
parameter
)

Return a decryptor that operates on an input stream.

public OutputDecryptor<T>

Returns:

an OutputDecryptor.
createOutputDecryptor
(SymmetricKey
the key to initialize the encryptor with.
key
,
T
the parameters to use to initialize the encryptor.
parameter
)

Return a decryptor that operates on an output stream.

public OutputEncryptor<T>

Returns:

an OutputEncryptor
createOutputEncryptor
(SymmetricKey
the key to initialize the encryptor with.
key
,
T
the parameters to use to initialize the encryptor.
parameter
)

Return an encryptor that operates on an output stream.

Method Detail

createInputDecryptorback to summary
public InputDecryptor<T> createInputDecryptor(SymmetricKey key, T parameter)

Return a decryptor that operates on an input stream.

Parameters
key:SymmetricKey

the key to initialize the encryptor with.

parameter:T

the parameters to use to initialize the encryptor.

Returns:InputDecryptor<T>

an InputDecryptor.

createOutputDecryptorback to summary
public OutputDecryptor<T> createOutputDecryptor(SymmetricKey key, T parameter)

Return a decryptor that operates on an output stream.

Parameters
key:SymmetricKey

the key to initialize the encryptor with.

parameter:T

the parameters to use to initialize the encryptor.

Returns:OutputDecryptor<T>

an OutputDecryptor.

createOutputEncryptorback to summary
public OutputEncryptor<T> createOutputEncryptor(SymmetricKey key, T parameter)

Return an encryptor that operates on an output stream.

Parameters
key:SymmetricKey

the key to initialize the encryptor with.

parameter:T

the parameters to use to initialize the encryptor.

Returns:OutputEncryptor<T>

an OutputEncryptor