MCPcopy Create free account
hub / github.com/F-Stack/f-stack / be64enc_vect

Function be64enc_vect

freebsd/crypto/sha2/sha512c.c:60–67  ·  view source on GitHub ↗

* Encode a length len/4 vector of (uint64_t) into a length len vector of * (unsigned char) in big-endian form. Assumes len is a multiple of 8. */

Source from the content-addressed store, hash-verified

58 * (unsigned char) in big-endian form. Assumes len is a multiple of 8.
59 */
60static void
61be64enc_vect(unsigned char *dst, const uint64_t *src, size_t len)
62{
63 size_t i;
64
65 for (i = 0; i < len / 8; i++)
66 be64enc(dst + i * 8, src[i]);
67}
68
69/*
70 * Decode a big-endian length len vector of (unsigned char) into a length

Callers 5

SHA512_PadFunction · 0.70
SHA512_FinalFunction · 0.70
SHA512_224_FinalFunction · 0.70
SHA512_256_FinalFunction · 0.70
SHA384_FinalFunction · 0.70

Calls 1

be64encFunction · 0.85

Tested by

no test coverage detected