def open_split

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

import bend-collections@1.0.0.0/src/crypto/aead/chacha20poly1305.bend as Chacha20poly1305
import Base
import bend-collections@1.0.0.0/src/crypto/subtle.bend as S

55def open_split(+key: List<&2, U32>, +nonce: List<&2, U32>, +aad: List<&2, U32>, +ct: List<&2, U32>, +t: List<&2, U32>) -> Maybe<&2, List<&2, U32>>:
56  open_tag(S.eq(t, tag(key, nonce, aad, ct)), key, nonce, ct)

Uses (6)

Used by (1)