def shorten

bend-collections@1.0.0.0 · spec/crypto/hmac.bend:36

import bend-collections@1.0.0.0/spec/crypto/hmac.bend as Hmac
import Base

36def shorten(+key: List<&2, U32>) -> List<&2, U32>:
37  shorten_if(key, Nat.is_le(List.length(&2, U32, key), block_len()))

Uses (6)

Used by (1)