Package-level declarations
APIs for performing different cryptographic operations: encryption/decryption, hashing, signatures, key derivation, key agreement, and key management.
Types
Combines AuthenticatedEncryptor and AuthenticatedDecryptor for authenticated encryption with associated data (AEAD).
Decrypts ciphertext with optional associated data for authenticated encryption (AEAD). When associated data is provided, it is verified during decryption. When associated data is null, only the ciphertext authenticity is verified.
Encrypts plaintext with optional associated data for authenticated encryption (AEAD). When associated data is provided, it is authenticated but not encrypted. When associated data is null, only the plaintext is authenticated and encrypted.
Decrypts ciphertext data to plaintext.
Encrypts plaintext data to ciphertext.
Computes cryptographic hash digests.
Incremental hash function that accumulates data and produces a digest on finalization.
Combines the ability to set explicit initialization vector (IV) and authenticated encryption (AEAD) capabilities.
Decrypts ciphertext with an explicit initialization vector (IV) and optional associated data. All WithIv methods are marked DelicateCryptographyApi because they require manual IV management rather than relying on the library to generate IVs safely. When associated data is provided, it is verified during decryption. When associated data is null, only the ciphertext authenticity is verified.
Encrypts plaintext with an explicit initialization vector (IV) and optional associated data. The WithIv methods return ciphertext || tag without the IV. All WithIv methods are marked DelicateCryptographyApi because using a custom IV requires careful handling to avoid security issues such as IV reuse. When associated data is provided, it is authenticated but not encrypted. When associated data is null, only the plaintext is authenticated and encrypted.
Extends Cipher with the ability to set explicit initialization vector (IV) support.
Decrypts ciphertext with an explicit initialization vector (IV). The WithIv methods expect only the ciphertext without a prepended IV. All WithIv methods are marked DelicateCryptographyApi because they require manual IV management rather than relying on the library to generate IVs safely.
Encrypts plaintext with an explicit initialization vector (IV). The WithIv methods return only the ciphertext without the IV. All WithIv methods are marked DelicateCryptographyApi because using a custom IV requires careful handling to avoid security issues such as IV reuse.
Generates new cryptographic keys of type K.
Generates algorithm parameters of type P.
Provides access to the associated public key of type PublicK.
Derives a secret from input keying material.
Performs key agreement to produce a shared secret with the other party's key.
Generates signatures over data.
Verifies signatures against data.
An incremental signing function that accumulates data and produces a signature on finalization.
Base interface for incremental (streaming) cryptographic operations such as hashing and signing.
An incremental verification function that accumulates data and checks a signature on finalization.