Package-level declarations

APIs for performing different cryptographic operations: encryption/decryption, hashing, signatures, key derivation, key agreement, and key management.

Types

Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Combines Encryptor and Decryptor for encryption and decryption operations.

Link copied to clipboard

Decrypts ciphertext data to plaintext.

Link copied to clipboard

Encrypts plaintext data to ciphertext.

Link copied to clipboard

Computes cryptographic hash digests.

Link copied to clipboard

Incremental hash function that accumulates data and produces a digest on finalization.

Link copied to clipboard

Combines the ability to set explicit initialization vector (IV) and authenticated encryption (AEAD) capabilities.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Extends Cipher with the ability to set explicit initialization vector (IV) support.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Generates new cryptographic keys of type K.

Link copied to clipboard

Generates algorithm parameters of type P.

Link copied to clipboard

Provides access to the associated public key of type PublicK.

Link copied to clipboard

Derives a secret from input keying material.

Link copied to clipboard

Performs key agreement to produce a shared secret with the other party's key.

Link copied to clipboard

Generates signatures over data.

Link copied to clipboard

Verifies signatures against data.

Link copied to clipboard

An incremental signing function that accumulates data and produces a signature on finalization.

Link copied to clipboard

Base interface for incremental (streaming) cryptographic operations such as hashing and signing.

Link copied to clipboard

An incremental verification function that accumulates data and checks a signature on finalization.