Crate bc_crypto

source ·
Expand description

§Introduction

bc-crypto is a exposes a uniform API for the cryptographic primitives used in higher-level Blockchain Commons projects such as Gordian Envelope. The various providers listed below may change, but the API this package provides should be stable.

CategoryAlgorithmProvider
Cryptographic digestSHA-256sha2
Cryptographic digestSHA-512sha2
Hashed Message Authentication CodesHMAC-SHA-256hmac
Hashed Message Authentication CodesHMAC-SHA-512hmac
Password ExpansionPBKDF2-HMAC-SHA-256pbkdf2
Key DerivationHKDF-HMAC-SHA-256hkdf
Symmetric EncryptionIETF-ChaCha20-Poly1305chacha20poly1305
Key AgreementX25519x25519-dalek
Signing/VerificationECDSAsecp256k1
Signing/VerificationSchnorrsecp256k1
Secure Random Number GenerationNAgetrandom, rand
Pseudorandom Number GenerationXoshiro256**rand_xoshiro

§Getting Started

[dependencies]
bc-crypto = "0.3.4"

Modules§

  • The hash module contains functions for hashing data.

Enums§

Constants§

Functions§