def seal_core

bend-collections@1.0.0.0 · src/crypto/aes/gcm.bend:152

import bend-collections@1.0.0.0/src/crypto/aes/gcm.bend as Gcm
import Base
import bend-collections@1.0.0.0/src/crypto/aes/types.bend as T
import bend-collections@1.0.0.0/src/crypto/aes/aes.bend as A

152# C || T; the counter of the first data block is 2 (inc32(J0)).
153def seal_core(+sched: A.Schedule, +n0: T.Quad, +n1: T.Quad, +n2: T.Quad, +aad: List<&2, U32>, pt: List<&2, U32>) -> List<&2, U32>:
154  +c = gctr(sched, pt, n0, n1, n2, 2)
155  List.append(&2, U32, c, tag(sched, n0, n1, n2, aad, c))

Uses (7)

Used by (1)