def cr.vm.nh

bend-osdev-crypto@0.1.0.0 · vmac.bend:163

import bend-osdev-crypto@0.1.0.0/vmac.bend as Vmac
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-word64@0.1.0.0/word64.bend as W

163# the NH value of a piece of 1 to 128 bytes (zero-padded to 16 bytes)
164def cr.vm.nh(+ks: List<&2, W.W64>, +p: List<&2, U32>) -> CrU128:
165  cr.vm.mod126(cr.vm.nh.go(cr.vm.words(Nat.mul(2n, Nat.div(Nat.add(B.len(p), 15n), 16n)), False{}, p, 0n), ks, cr.vm.u(W.W64.zero())))

Uses (14)

Used by (1)