Cryptographic hash functions #
Security properties are computational and cannot be fields. The laws relate the one-shot and
incremental interfaces: hash_spec (one call agrees with a fresh state) and update_append
(two chunks agree with their concatenation).
- State : Type
The running state of an incremental hash.
- name : String
- digestSize : Nat
- blockSize : Nat
The compression function's input width in bytes, used by HMAC for key padding.
- init : self.State
- finalize : self.State → Vector UInt8 self.digestSize
- hash : ByteArray → Vector UInt8 self.digestSize
Instances For
@[instance_reducible]
The empty hash, to show Hash is inhabited. Not a hash.
Equations
- One or more equations did not get rendered due to their size.