Top Description Interfaces Classes Enums
[default module]

Package org.bouncycastle.crypto


Lower level cryptography API that supports the JCA/JCE provider as well as allowing access to more primitive functionality.

Interface Summary

Modifier and TypeInterface and Description
public interface
AADProcessor

Base interface for extra methods required for handling associated data in AEAD ciphers.

public interface
AEADOperatorFactory<
the type for the parameters for the operator made by this factory.
T extends Parameters
>

Interface for factories producing encryptor/decryptor objects supporting AEAD modes.

public interface
Agreement<
the parameters class for the particular version.
T extends Parameters
>

Basic interface for key agreement implementations.

public interface
AgreementFactory<
the type for the parameters for the operator made by this factory.
T extends Parameters
>

Interface for factories producing Agreement objects supporting key agreement.

public interface
Algorithm

Base interface for an algorithm descriptor.

public interface
AsymmetricKey

Base interface for Public/Private keys.

public interface
AsymmetricKeyPairGenerator<
the generator's parameters type.
T extends Parameters
,
the type of the public key.
P extends AsymmetricPublicKey
,
the type of the private key.
S extends AsymmetricPrivateKey
>

Interface describing a key generator for public/private key pairs.

public interface
AsymmetricOperatorFactory<
the type for the parameters for the operator made by this factory.
T extends Parameters
>

Interface describing a factory that creates encryptors and decryptors based on public key cryptography.

public interface
AsymmetricPrivateKey

Marker interface for a private key,

public interface
AsymmetricPublicKey

Marker interface for a public key,

public interface
AuthenticationParameters<
the implementing type for this interface.
T extends Parameters
>

Interface that parameters sets associated with MACs should conform to.

public interface
AuthenticationParametersWithIV<
the implementing type for this interface.
T extends AuthenticationParametersWithIV
>

Interface describing parameters used in an authentication mode, such as for a MAC, AEAD cipher, or a HMAC.

public interface
CharToByteConverter

Interface for a converter that produces a byte encoding for a char array.

public interface
DigestAlgorithm

Marker interface for a digest algorithm

public interface
DigestOperatorFactory<
the type for the parameters for the operator made by this factory.
T extends Parameters
>

Interface describing an operator factory for creating digest calculators.

public interface
EncapsulatedSecretExtractor<
the type for the parameters used by this extractor.
T extends Parameters
>

Interface describing an encapsulated secret extractor.

public interface
EncapsulatingSecretGenerator<
the type for the parameters used by this generator.
T extends Parameters
>

Interface describing an encapsulated secret generator, such as for RSA KTS.

public interface
EntropySource

Base interface describing an entropy source for a DRBG.

public interface
EntropySourceProvider

Base interface describing a provider of entropy sources.

public interface
InputAEADDecryptor<
the parameters type for the decryptor.
T extends Parameters
>

Base interface for an input consuming AEAD Decryptor supporting associated text.

public interface
InputDecryptor<
the parameters type for the decryptor.
T
>

Base interface for an input consuming Decryptor.

public interface
KDFCalculator<
the type of the parameters used to initialise the calculator.
T extends Parameters
>

Interface describing a Key Derivation Function (KDF).

public interface
KDFOperatorFactory<
the type for the parameters for the operator made by this factory.
T extends Parameters
>

Interface describing a factory that creates Key Derivation Function (KDF) calculators.

public interface
Key

Base interface for keys.

public interface
KeyUnwrapper<
the parameter type for the un-wrapper.
T extends Parameters
>

Base interface for a key un-wrapper.

public interface
KeyUnwrapperUsingSecureRandom<
the parameter type for the un-wrapper.
T extends Parameters
>

Interface describing a KeyUnwrapper which also requires a SecureRandom as part of its configuration.

public interface
KeyWrapOperatorFactory<
the parameter type for the key wrappers/un-wrappers we produce.
T extends Parameters
, K extends Key>

Base interface for a creator of key wrappers and un-wrappers.

public interface
KeyWrapper<
the parameter type for the wrapper.
T extends Parameters
>

Base interface for a key wrapper.

public interface
KeyWrapperUsingSecureRandom<
the parameter type for the wrapper.
T extends Parameters
>

Interface describing a KeyWrapper which also requires a SecureRandom as part of its configuration.

public interface
KTSOperatorFactory<
the parameters type for the encapsulators and extractors we produce.
T extends Parameters
>

Base interface for a creator of secret value encapsulators and extractors.

public interface
MACOperatorFactory<
the parameters type for the MAC calculator we produce.
T extends AuthenticationParameters<T extends Parameters>
>

Base interface for a creator of MAC calculators.

public interface
OperatorUsingSecureRandom<
the operator returned.
T
>

Interface allowing an operator to be created with a particular SecureRandom.

public interface
OutputAEADDecryptor<
the parameters type for the decryptor.
T extends Parameters
>

Base interface for an output producing AEAD Decryptor supporting associated text.

public interface
OutputAEADEncryptor<
the parameters type for the encryptor.
T extends Parameters
>

Base interface for an output producing AEAD Encryptor supporting associated text.

public interface
OutputCipher<
the parameters type for the output cipher.
T extends Parameters
>

Base interface for a cipher which produces encrypted/decrypted output.

public interface
OutputDecryptor<
the parameters type for the decryptor.
T extends Parameters
>

Base interface for an output producing Decryptor.

public interface
OutputDigestCalculator<
the parameters type for the digest calculator.
T
>

Base interface for a digest calculator.

public interface
OutputEncryptor<
the parameters type for the encryptor.
T extends Parameters
>

Base interface for an output producing Encryptor.

public interface
OutputMACCalculator<
the parameters type for the MAC calculator.
T
>

Base interface for a MAC calculator.

public interface
OutputSigner<
the parameters type for the signer.
T extends Parameters
>

Base interface for an output signer.

public interface
OutputSignerUsingSecureRandom<
the parameters type for the signer.
T extends Parameters
>

Interface for an output signer that can make use of a SecureRandom,

public interface
OutputSignerWithMessageRecovery<
the parameters type for the signer.
T extends Parameters
>

Interface for an output signer that also supports message recovery from the signature.

public interface
OutputVerifier<
the parameters type for the verifier.
T extends Parameters
>

Base interface for an output verifier which can be used to verify a signature against a data stream.

public interface
OutputVerifierWithMessageRecovery<
the parameters type for the signer.
T extends Parameters
>

Interface for an output signer that also supports message recovery from the signature.

public interface
OutputXOFCalculator<
the parameters type for the XOF calculator.
T
>

Base interface for an eXtendable Output Funnction (XOF) calculator.

public interface
Parameters

Base interface for operator parameters.

public interface
ParametersWithIV<T extends Parameters>

Interface describing parameters that have an initialization vector (IV) associated with them.

public interface
PasswordBasedDeriver<
the parameters type for the deriver.
T
>

Base interface for a password based deriver of bytes for symmetric keys.

public interface
PasswordBasedDeriverFactory<
the parameters type for the password based key derivers we produce.
T extends Parameters
>

Base interface for a creator of password based key derivers.

public interface
RecoveredMessage

Interface describing recovered message details from a signature.

public interface
SecretWithEncapsulation

Interface describing secret with encapsulation details.

public interface
SecureRandomProvider

Source provider for SecureRandom implementations.

public interface
SignatureOperatorFactory<
the parameter type for the signers and verifiers we produce.
T extends Parameters
>

Interface describing an operator factory that produces signers and verifiers.

public interface
SignatureWithMessageRecoveryOperatorFactory<
the parameter type for the signers and verifiers we produce.
T extends Parameters
>

Interface describing an operator factory that produces signers and verifiers for algorithms that support message recovery.

public interface
SingleBlockCipher<
the parameters type for the cipher implemented.
T extends Parameters
>

Base interface for a cipher only able to handle a single block of data.

public interface
SingleBlockDecryptor<
the parameters type for the decryptor's cipher..
T extends Parameters
>

Base interface for a decryptor only able to decrypt a single block of data.

public interface
SingleBlockDecryptorUsingSecureRandom<
the parameters type for the decryptor's cipher.
T extends Parameters
>

Interface for a decryptor only able to decrypt a single block of data that makes use of a SecureRandom in the process (usually for algorithmic blinding).

public interface
SingleBlockEncryptor<
the parameters type for the encryptor's cipher..
T extends Parameters
>

Base interface for a encryptor only able to encrypt a single block of data.

public interface
SingleBlockEncryptorUsingSecureRandom<
the parameters type for the encryptor's cipher.
T extends Parameters
>

Interface for a encryptor only able to encrypt a single block of data that makes use of a SecureRandom in the process.

public interface
SymmetricKey

Interface describing a symmetric key.

public interface
SymmetricKeyGenerator<
the parameters type for the key generator.
T extends SymmetricKey
>

Interface describing a symmetric key generator.

public interface
SymmetricOperatorFactory<
the parameters type for the operators the factory creates.
T extends Parameters
>

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

public interface
XOFOperatorFactory<
the parameters type for the XOF calculator we produce.
T
>

Base interface for a creator of extendable output function (XOF) calculators.

Class Summary

Modifier and TypeClass and Description
public abstract class
CipherOutputStream

Returned stream for writing data for encryption/decryption.

public class
CryptoServicesPermission

Permissions that need to be configured if a SecurityManager is used.

public class
CryptoServicesRegistrar

Basic registrar class for providing defaults for cryptography services in this module.

public class
IllegalKeyException

Exception thrown when an attempt is made to use an illegal key with an algorithm, A key may be regarded as illegal if it has been created for a specific mode of a particular algorithm and an attempt is made to use it for a different mode.

public class
InvalidCipherTextException

Exception thrown when something unexpected is encountered processing an encrypted stream.

public class
InvalidSignatureException

Exception thrown when something unexpected is encountered in verifying a signature.

public class
InvalidWrappingException

Exception thrown when an invalid key wrapping is encountered.

public class
OperatorNotReadyException

Exception thrown if an operator has not been properly initialized.

public class
PlainInputProcessingException

Exception thrown when something unexpected is encountered processing plain text input data for signature or block encryption.

public class
RuntimeStreamException

Parent class for exceptions arising due to cryptographic operations in the various streams created by the FIPS factory classes.

public class
StreamException

Parent class for exceptions arising due to cryptographic operations in the various streams created by the FIPS factory classes.

public class
SymmetricSecretKey

Basic class describing a secret key implementation.

public class
UpdateException

A runtime exception that may be thrown by an update operation on an UpdateOutputStream if the underlying stream throws an IOException.

public abstract class
UpdateOutputStream

An extension of output stream that provides update methods which allow for data to feed into the stream without the need to handle checked exceptions.

Enum Summary

Modifier and TypeEnum and Description
public enum
PasswordConverter

Standard char[] to byte[] converters for password based derivation algorithms.