def ad.sq.open

bend-osdev-aead@0.1.0.0 · seqiv.bend:73

import bend-osdev-aead@0.1.0.0/seqiv.bend as Seqiv
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr

73# IV || C opened (the IV the first ivlen bytes; the sequence number is not
74# needed): the AEAD's open of C under that IV and A || IV, or CrTooShort
75def ad.sq.open(~KA: Data, ~open: KA -> B.Octets -> B.Octets -> B.Octets -> Result<&2, &2, Cr.CrError, B.Octets>, ~ivlen: Nat, +k: AdSeqivKey<KA>, seq: B.Octets, aad: B.Octets, +c: B.Octets) -> Result<&2, &2, Cr.CrError, B.Octets>:
76  ad.sq.open.go(~KA, ~open, k, aad, B.Octets.len(c), B.Octets.split_at(ivlen, c))

Uses (8)

Used by (1)