def nonce_size

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

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

50def nonce_size(alg: Alg) -> Nat:
51  match alg:
52    case CHACHA20_POLY1305{}: 12n
53    case XCHACHA20_POLY1305{}: 24n
54    case AES_128_GCM{}: 12n
55    case AES_256_GCM{}: 12n

Uses (2)

Used by (1)