def ccm.ai

bend-osdev-cipher-modes@0.1.0.0 · ccm.bend:62

import bend-osdev-cipher-modes@0.1.0.0/ccm.bend as Ccm
import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M

62# A_i = A_0 with counter i (i < 2^(8L), so it stays in the counter field)
63def ccm.ai(a0: M.CmBlock, i: U32) -> M.CmBlock:
64  M.CmBlock.xor(a0, M.CmBlock{0, 0, 0, i})

Uses (3)

Used by (11)