Expand description
This module defines a cryptographic abstraction layer for use in hax protocol specifications.
Structs§
- AEADIV
- An abstract AEAD initialization vector.
- AEADKey
- An abstract AEAD key.
- AEADTag
- An abstract AEAD authentication tag.
- DHElement
- An abstract Diffie-Hellman group element.
- DHScalar
- An abstract Diffie-Hellman scalar.
Enums§
- AEAD
Algorithm - Choice of AEAD algorithms.
- DHGroup
- Choice of Diffie-Hellman groups.
- HMAC
Algorithm - Choice of algorithms for instantiation of HMAC.
- Hash
Algorithm - Choice of hashing algorithms.
Functions§
- aead_
decrypt - Abstract AEAD decryption using
algorithm
. On success returns the decrypted plaintext, otherwise aCryptoError
. - aead_
encrypt - Abstract AEAD encryption using
algorithm
. Returns a pair of byte vectors(ciphertext, tag)
. - dh_
scalar_ multiply - Scalar multiplication of
scalar
andelement
. - dh_
scalar_ multiply_ base - Scalar multiplication of a fixed generator and
scalar
. - hash
- Abstract hashing using
algorithm
. - hmac
- Abstract HMAC using
algorithm
as the hash function.