cryptdart library

Main public API for CryptDart. Auto-generated barrel file - DO NOT EDIT manually. Run: dart run bin/generate_barrel.dart

Classes

AESCipher
AES symmetric cipher implementation. Extends SymmetricCipher and provides AES encryption/decryption.
AlgorithmNegotiation
Default implementation of algorithm negotiation
AsymmetricAlgorithm
Static class providing access to all asymmetric algorithms as enums. Cannot be instantiated.
AsymmetricCipher
Base class for asymmetric cipher implementations. Extends Cipher, mixes in IAsymmetric for keyId implementation, and implements IAsymmetricCipher.
AsymmetricCipherAlgorithmEnum
Static class providing access to asymmetric cipher algorithms as enums. Cannot be instantiated.
AsymmetricSign
Base class for asymmetric signature implementations. Extends Sign, mixes in IAsymmetric for keyId implementation, and implements IAsymmetricSign.
AsymmetricSignAlgorithmEnum
Static class providing access to asymmetric signature algorithms as enums. Cannot be instantiated.
ChaCha20Cipher
ChaCha20 symmetric cipher implementation. Extends SymmetricCipher and provides ChaCha20 encryption/decryption.
Cipher
Base class for all cipher implementations. Extends ExpirationBase and implements ICipher.
CipherFactory
Central factory for creating cipher, signature, and key exchange instances.
CryptoPeerCapabilities
Represents the capability set of a cryptographic peer.
CryptoSessionManager
Manages cryptographic sessions between peers with algorithm negotiation and key exchange
DESCipher
TripleDES symmetric cipher implementation. Extends SymmetricCipher and provides TripleDES encryption/decryption.
ECCKeyUtils
Utilities for ECC key operations.
ECDHKeyExchange
ECDH key exchange implementation
ECDSACipher
ECDSA asymmetric cipher implementation (encryption/decryption). Extends AsymmetricCipher and provides ECC-based operations.
ECDSASign
ECDSA signature implementation. Extends AsymmetricSign and provides ECC-based digital signature operations.
ExpirationBase
Base class for expiration logic in cryptographic objects. Implements IExpiration and manages expiration date, usage limits, and algorithm.
Handler<T extends IExpiration>
HandlerCipherAsymmetric<T extends IAsymmetricCipher>
HandlerCipherSymmetric<T extends ISymmetricCipher>
HandlerSignAsymmetric<T extends IAsymmetricSign>
HandlerSignSymmetric<T extends ISymmetricSign>
HMACSign
HMAC (Hash-based Message Authentication Code) signature implementation. Extends SymmetricSign and provides HMAC signing and verification.
IAlgorithmNegotiation
Interface for algorithm negotiation between cryptographic peers.
IAsymmetricCipher
Interface for asymmetric ciphers. Combines IAsymmetric and ICipher.
IAsymmetricSign
Interface for asymmetric signature operations. Combines IAsymmetric and ISign.
IBaseExpiration
Base interface for expiration logic in cryptographic objects. Provides expiration date and usage limits.
ICipher
Base interface for all cipher implementations. Extends IExpiration to support expiration logic.
ICryptoSession
Interface for managing cryptographic sessions between peers.
IExpiration
Interface for expiration logic in cryptographic objects. Provides expiration date, usage limits, and algorithm info.
IHandler<T extends IExpiration>
Generic handler interface for cryptographic objects. Manages a chain of crypts and expiration logic.
IHandlerAsymmetric<T extends IAsymmetric>
Handler for asymmetric cryptographic objects.
IHandlerCipher<T extends ICipher>
Handler for cipher objects.
IHandlerSign<T extends ISign>
Handler for signature objects.
IHandlerSymmetric<T extends ISymmetric>
Handler for symmetric cryptographic objects.
IKeyExchange
Interface for key exchange protocols like ECDH.
IKeyId
Interface that declares the keyId. Returns SHA-256 hash of the key material as a hex string.
InputAESCipher
Input parameters for AESCipher constructor.
InputAsymmetricCipher
Input parameters for AsymmetricCipher constructor.
InputAsymmetricSign
Input parameters for AsymmetricSign constructor.
InputChaCha20Cipher
Input parameters for ChaCha20Cipher constructor.
InputCipher
Input parameters for Cipher constructor.
InputDESCipher
Input parameters for DESCipher constructor.
InputECDHKeyExchange
Input parameters for ECDHKeyExchange constructor.
InputECDSACipher
Input parameters for ECDSACipher constructor.
InputECDSASign
Input parameters for ECDSASign constructor.
InputExpirationBase
Input parameters for ExpirationBase constructor.
InputHandler<T extends IExpiration>
Input parameters for Handler constructor.
InputHMACSign
Input parameters for HMACSign constructor.
InputKeyExchangeBase
Input parameters for KeyExchangeBase constructor.
InputRSACipher
Input parameters for RSACipher constructor.
InputRSASignatureCipher
Input parameters for RSASignatureCipher constructor.
InputSign
Input parameters for Sign constructor.
InputSymmetricCipher
Input parameters for SymmetricCipher constructor.
InputSymmetricSign
Input parameters for SymmetricSign constructor.
ISign
Interface for digital signature operations. Extends IExpiration for expiration logic.
ISymmetricCipher
Interface for symmetric ciphers. Combines ICipher and ISymmetric.
ISymmetricSign
Interface for symmetric signature operations. Combines ISymmetric and ISign.
KeyEncodingUtils
Utilities for key encoding and conversion.
KeyExchangeBase
Base class for key exchange implementations with expiration logic. Implements IBaseExpiration and manages expiration date, usage limits, and key exchange algorithm.
KeyPair
An asymmetric key pair (public and private keys).
NegotiationResult
Result of algorithm negotiation between two peers.
RSACipher
RSA asymmetric cipher implementation. Extends AsymmetricCipher and provides RSA encryption/decryption.
RSAKeyUtils
Utilities for RSA key operations.
RSASignatureCipher
RSA signature implementation. Extends AsymmetricSign and provides RSA digital signature operations.
SecureCommunicationFactory
High-level factory for creating secure bidirectional communication sessions
SecureRandomUtils
Utilities for SecureRandom generation.
SecureSession
Represents an established secure session between two peers.
Sign
Base class for signature implementations. Extends ExpirationBase and implements ISign.
SymmetricAlgorithm
Static class providing access to all symmetric algorithms as enums. Cannot be instantiated.
SymmetricCipher
Base class for symmetric cipher implementations. Extends Cipher, mixes in ISymmetric for keyId implementation, and implements ISymmetricCipher.
SymmetricCipherAlgorithmEnum
Static class providing access to symmetric cipher algorithms as enums. Cannot be instantiated.
SymmetricKeyUtils
Utilities for symmetric key generation.
SymmetricSign
Base class for symmetric signature implementations. Extends Sign, mixes in ISymmetric for keyId implementation, and implements ISymmetricSign.
SymmetricSignAlgorithmEnum
Static class providing access to symmetric signature algorithms as enums. Cannot be instantiated.

Enums

CryptoAlgorithm
Enum with all available cryptographic algorithms.
KeyExchangeAlgorithm
Supported key exchange algorithms.

Mixins

HandlerAsymmetric<T extends IAsymmetric>
HandlerCipher<T extends ICipher>
HandlerSign<T extends ISign>
HandlerSymmetric<T extends ISymmetric>
IAsymmetric
Mixin for asymmetric key objects. Provides SHA-256 based keyId implementation using the public key. Must be mixed into classes that extend IExpiration.
ISymmetric
Mixin for symmetric key objects. Provides SHA-256 based keyId implementation. Must be mixed into classes that extend IExpiration.

Extensions

SecureSessionExtensions on SecureSession
Extension methods for easier session usage