rind 0.1.1
rind: ^0.1.1 copied to clipboard
Fast, misuse-resistant cryptography for Dart and Flutter, through FFI to rind, a pure-Rust library: AEADs, hashes, HMAC, HKDF, PBKDF2, X25519, Ed25519, ECDSA, ECDH, RSA, and ML-KEM.
0.1.1 #
- The unauthenticated ciphers: AES-CBC (
AesCbcEncryptingKey,AesCbcDecryptingKey,CbcIv), AES-CTR (AesCtr), and ChaCha20 (ChaCha20), sized byCipherAlgorithm. - AES-GCM under IVs of any length but zero (
GcmKey,GcmIv), and RSA-PSS with a salt length of the caller's choosing (RsaPssSigningAlgorithm, whichRsaKeyPair.signandRsaKeyPair.publicKeynow take as anRsaSigningScheme, andRsaVerificationAlgorithm.pssSha256and its SHA-384 and SHA-512 kin). - rind wipes a key's native memory when Dart frees the key.
- No call throws
UnsupportedErrorfor a missing CPU feature: rind runs on every CPU of each target it supports. - An RSA
PublicKeywhose modulus is below its algorithm's floor parses, andverifythrowsRindError.keyRejected.
0.1.0 #
- rind's AEADs, digests, HMAC, HKDF, PBKDF2, key agreement, signatures,
ML-KEM-768, and RSA-OAEP, through a prebuilt library the build hook
downloads and checks against its pinned SHA-256, or built from source with
the
build_from_sourceuser-define.