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

Function be32enc_vect

freebsd/crypto/sha2/sha256c.c:58–65  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

SHA256_FinalFunction · 0.70
SHA224_FinalFunction · 0.70

Calls 1

be32encFunction · 0.85

Tested by

no test coverage detected