Hmac.shorten: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/spec/crypto/hmac.bend as Hmac Lines 36-37 of bend-collections@1.0.0.0/spec/crypto/hmac.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/spec/crypto/hmac.bend&start_line=36&end_line=37 import Base def shorten(+key: List<&2, U32>) -> List<&2, U32>: shorten_if(key, Nat.is_le(List.length(&2, U32, key), block_len())) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/hmac.bend&name=block_len https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/hmac.bend&name=shorten_if