Mac.sign: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/src/crypto/mac.bend as Mac Lines 55-58 of bend-collections-laws-crypto@1.0.0.0/src/crypto/mac.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/mac.bend&start_line=55&end_line=58 import Base import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/sha256.bend as SHA def sign(+key: List<&2, U32>, msg: List<&2, U32>) -> List<&2, U32>: +k = block_key(key) SHA.sha256_bytes(List.append(&2, U32, mask(k, block_len(), 92), SHA.sha256_bytes(List.append(&2, U32, mask(k, block_len(), 54), msg)))) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/mac.bend&name=block_key https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/mac.bend&name=block_len https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/mac.bend&name=mask https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/sha256.bend&name=sha256_bytes