crypto/crypto/crypto library
The 'crypto' library provides a collection of cryptographic algorithms and utilities for various cryptographic operations and security functions.
Classes
- AEAD
- An abstract class representing an Authenticated Encryption with Associated Data (AEAD) cipher.
- AES
- Represents an Advanced Encryption Standard (AES) block cipher.
- AffinePointt
- Represents a point in affine coordinates on an elliptic curve.
- BLAKE2b
- Implementation of the BLAKE2b hash function that implements the SerializableHash interface.
- Blake2bConfig
- Configuration class for the Blake2b hash function.
- Blake2bState
- Represents the state of a BLAKE2b hash function.
- Blake2bTree
- Configuration for the tree structure in Blake2b.
- BlockCipher
- An abstract class representing a block cipher for symmetric encryption and decryption.
- ChaCha20
- ChaCha20Poly1305
- Crc16
- Crc32
- A class for calculating cyclic redundancy check (CRC32) values.
- CryptoOps
- CryptoOpsConst
- CTR
- Counter (CTR) mode for block ciphers.
- Curves
- This class provides a collection of predefined elliptic curves for various cryptographic applications.
- ECB
- Electronic Codebook (ECB) mode for AES encryption and decryption.
- ECDSAPrivateKey
- Represents an ECDSA (Elliptic Curve Digital Signature Algorithm) private key.
- ECDSAPublicKey
- Represents an ECDSA (Elliptic Curve Digital Signature Algorithm) public key.
- ECDSASignature
- 
  Represents an ECDSA (Elliptic Curve Digital Signature Algorithm) signature
containing randscomponents.
- Ed25519Utils
- Utility class for Ed25519-specific operations.
- EDDSAPrivateKey
- Represents an EdDSA private key and provides methods for key operations.
- EDDSAPublicKey
- Represents an EdDSA public key in the Edwards curve format.
- EDPoint
- A class representing a point on an Edwards curve, extending the abstract AbstractPoint class.
- FieldElement
- FortunaPRNG
- 
  The FortunaPRNGclass represents an implementation of the Fortuna pseudorandom number generator (PRNG) algorithm.
- GammaDistribution
- GCM
- Galois/Counter Mode (GCM) implementation for authenticated encryption with associated data (AEAD).
- GroupElementCached
- GroupElementP1P1
- GroupElementP2
- GroupElementP3
- GroupElementPrecomp
- Hash
- 
  The Hashabstract class defines the basic operations for hash algorithms.
- HashBytesState
- 
  The HashBytesStateclass represents the state of a hashing process that operates on a byte array.
- HashState
- 
  The HashStateabstract class serves as a marker interface for hash state classes.
- HKDF
- A Dart implementation of the HKDF (HMAC-based Key Derivation Function) as defined in RFC 5869. This class supports both the extract and expand phases.
- HMAC
- 
  The HMACclass represents a Hash-based Message Authentication Code.
- Jwt
- JwtHeader
- JwtPayload
- Keccack
- MD4
- Implementation of the MD4 (Message Digest 4) hash function.
- MD5
- A class that represents the MD5 hash algorithm, which is used to compute MD5 message digests. This class implements the SerializableHash interface.
- MerlinTranscript
- A transcript object for the Merlin cryptographic protocol.
- MuSig2
- MuSig2DeterministicSignature
- MuSig2KeyAggContext
- MuSig2Nonce
- MuSig2Session
- MuSig2SessionValues
- MuSig2Tweak
- MuSig2Utils
- PBKDF2
- 
  The PBKDF2class is an implementation of the Password-Based Key Derivation Function 2 (PBKDF2) algorithm.
- Poly1305
- 
  The Poly1305class represents an implementation of the Poly1305 one-time message authentication code (MAC).
- ProjectiveECCPoint
- Represents a point in projective coordinates on an elliptic curve.
- RFC6979
- A class that implements the RFC6979 deterministic K value generation algorithm for ECDSA.
- RIPEMD128
- 
  A class representing the RIPEMD-128 hash algorithm, extending the _RIPEMDbase class.
- RIPEMD160
- 
  A class representing the RIPEMD-160 hash algorithm, extending the _RIPEMDbase class.
- RIPEMD256
- 
  A class representing the RIPEMD-256 hash algorithm, extending the _RIPEMDbase class.
- RIPEMD320
- 
  A class representing the RIPEMD-320 hash algorithm, extending the _RIPEMDbase class.
- RistrettoUtils
- SchnorrkelKeyCost
- 
  The SchnorrkelKeyCostclass defines various constants related to the sizes and lengths of Schnorrkel keys and components.
- SchnorrkelKeypair
- Represents a Schnorrkel key pair, consisting of a secret key and a public key.
- SchnorrkelMiniSecretKey
- 
  The SchnorrkelMiniSecretKeyclass represents a mini-secret key used for generating Schnorr key pairs.
- SchnorrkelPublicKey
- Represents a Schnorrkel public key used for verifying signatures.
- SchnorrkelSecretKey
- 
  The SchnorrkelSecretKeyclass represents a Schnorrkel secret key used for cryptographic operations.
- SchnorrkelSignature
- Represents a Schnorrkel digital signature.
- Scrypt
- A class for performing scrypt key derivation.
- Secp256k1Utils
- 
  SerializableHash<T extends HashState> 
- 
  The SerializableHashabstract class extends theHashclass and adds functionality for saving, restoring, and cleaning hash states.
- SH1State
- 
  The SHA1Stateclass represents the state of the SHA-1 hash algorithm.
- SHA1
- A class representing the SHA-1 (Secure Hash Algorithm 1) hash algorithm.
- SHA224
- 
  The SHA224class represents the SHA-224 hash algorithm, which is a variant of SHA-256.
- SHA256
- 
  The SHA256class represents the SHA-256 hash algorithm.
- SHA256State
- SHA3
- 
  The SHA3class is used to compute hash digests of data, and it allows customization of the digest length
- SHA3224
- 
  The SHA3224class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 224 bits (28 bytes).
- SHA3256
- 
  The SHA3256class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 256 bits (32 bytes).
- SHA3384
- 
  The SHA3384class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 384 bits (48 bytes).
- SHA3512
- 
  The SHA3512class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 512 bits (64 bytes).
- SHA384
- 
  The SHA384class extends the SHA-512 hash algorithm to produce 384-bit digests.
- SHA512
- 
  The SHA512class implements the SHA-512 hash algorithm.
- SHA512256
- 
  The SHA512256class extends the SHA-512 hash function, specifically truncating its output to 256 bits (32 bytes). It inherits the implementation of the SHA-512 hash algorithm
- SHA512State
- 
  The SHA512Stateclass represents the state of a SHA-512 hash calculation.
- SHAKE
- 
  The SHAKEclass represents the SHAKE (Secure Hash Algorithm KEccak) extendable-output hash function.
- SHAKE128
- SHAKE128 is an implementation of the SHAKE128 extendable-output function.
- SHAKE256
- SHAKE256 is an implementation of the SHAKE256 extendable-output function.
- Strobe
- Strobe is a cryptographic framework for building secure, stateful, and authenticated cryptographic protocols. Strobe-128/1600 and Strobe-256/1600 for standards compliance.
- StrobeFlags
- Class representing Strobe operation flags.
- StrobeOperation
- enum representing Strobe operations.
- StrobeSecParam
- VRFInOut
- 
  The VRFInOutclass represents the input and output data of a Verifiable Random Function (VRF) computation.
- VRFPreOut
- VRFProof
- 
  The VRFProofclass represents a Verifiable Random Function (VRF) proof, consisting of two components 'c' and 's'.
- X25519
- Implements scalar multiplication on Curve25519 using the Montgomery ladder. This is the basis for X25519 key agreement as described in RFC 7748.
- X25519KeyConst
- X25519Keypair
- Represents an X25519 keypair used for elliptic curve Diffie-Hellman (ECDH).
- XModemCrc
- A class for calculating and verifying XModem CRC (Cyclic Redundancy Check).
- XXHash64
Enums
- ExpansionMode
- 
  The ExpansionModeenum defines different expansion modes used in Schnorr signatures (Schnorrkel).
- JwtSupportedAlgorithm
Typedefs
- 
    GenerateRandom
      = List<int> Function(int length)
- 
    The GenerateRandomtypedef defines a function signature for generating random data with a specified length.
- 
  GroupElementDsmp
    = List<GroupElementCached> 
- 
    HashFunc
      = SerializableHash<HashState> Function()
Exceptions / Errors
- CryptoException
- CryptoOpsException
- JacobiError
- An exception class for errors related to Jacobi symbol calculations.
- MuSig2Exception
- SquareRootError
- An exception class for errors related to square root calculations.