Expand description
Utilities for hashing and encryption
Constants§
- AES_
GCM_ NONCE_ SIZE - Size of the AES-GCM nonce
Functions§
- ansi_
x963_ derive_ key - Derive a shared key using the ANSI-x963 standard https://www.secg.org/sec1-v2.pdf (section 3.6.1)
- create_
rng - Creates a new random number generator.
- decrypt
- Decrypt the passed data using the key
- encrypt
- Encrypt the passed data using the key
- expand_
to_ scalar - Expands a message using the XMD (eXpandable Message Digest) method with SHA-256, and reduces
the result modulo the curve order to produce a
Scalar
. - hash_
to_ scalar - Digest the hasher to a Scalar
- make_
shared_ secret - Do a Diffie-Hellman key exchange to create a shared secret from the passed private/public keys
- make_
shared_ secret_ from_ key - Create a shared secret from the passed Diffie-Hellman shared key