def key_size

bend-collections@1.0.0.0 · src/crypto/aead.bend:43

import bend-collections@1.0.0.0/src/crypto/aead.bend as Aead
import Base

43def key_size(alg: Alg) -> Nat:
44  match alg:
45    case CHACHA20_POLY1305{}: 32n
46    case XCHACHA20_POLY1305{}: 32n
47    case AES_128_GCM{}: 16n
48    case AES_256_GCM{}: 32n

Uses (2)

Used by (1)