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

Function be32dec_vect

freebsd/crypto/sha2/sha256c.c:71–78  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

69 * len/4 vector of (uint32_t). Assumes len is a multiple of 4.
70 */
71static void
72be32dec_vect(uint32_t *dst, const unsigned char *src, size_t len)
73{
74 size_t i;
75
76 for (i = 0; i < len / 4; i++)
77 dst[i] = be32dec(src + i * 4);
78}
79
80#endif /* BYTE_ORDER != BIG_ENDIAN */
81

Callers 1

SHA256_TransformFunction · 0.70

Calls 1

be32decFunction · 0.85

Tested by

no test coverage detected