def ad.ae.start

bend-osdev-aead@0.1.0.0 · aegis128.bend:241

import bend-osdev-aead@0.1.0.0/aegis128.bend as Aegis128
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-crypto@0.1.0.0/octets.bend as O
import bend-osdev-aead@0.1.0.0/aesround.bend as R

241# the run before the message: the state after the key, nonce and associated
242# data
243def ad.ae.start(+sb: R.AdSbox, +k: R.AdBlk, +nonce: B.Octets, +aad: B.Octets) -> AdAegisRun:
244  ad.ae.run0(ad.ae.absorb(sb, O.CrOct.pieces(16n, B.Octets.to_list(aad)), ad.ae.init(sb, k, R.AdBlk.of_octets(nonce))))

Uses (10)

Used by (7)