helpers library
Various helpers for cryptography.
Classes
- DelegatingCipher
- Delegating base class for Cipher implementations.
- DelegatingCryptography
- Delegating base class for Cryptography implementations.
- DelegatingEcdh
- Delegating base class for Ecdh implementations.
- DelegatingEcdsa
- Delegating base class for Ecdsa implementations.
- DelegatingEd25519
- Delegating base class for Ed25519 implementations.
- DelegatingKeyExchangeAlgorithm
- Delegating base class for KeyExchangeAlgorithm implementations.
- DelegatingRsaPss
- Delegating base class for RsaPss implementations.
- DelegatingSignatureAlgorithm
- Delegating base class for SignatureAlgorithm implementations.
- DelegatingStreamingCipher
- Delegating base class for StreamingCipher implementations.
Constants
-
constantTimeBytesEquality
→ const Equality<
List< int> > -
An implementation of
Equality
that compares bytes in constant time.
Functions
-
bytesIncrementBigEndian(
Uint8List bytes, int n) → void - Interprets the bytes a big endian integer and increments them by int.
-
fillBytesWithSecureRandom(
Uint8List bytes, {Random? random}) → void - Fills a list with random bytes (using Random.secure().
-
randomBytes(
int length, {Random? random}) → Uint8List -
Generates a list of
length
random bytes. -
randomBytesAsHexString(
int length, {Random? random}) → String -
Generates a hex string of
length
random bytes.