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

Function be64dec_vect

freebsd/crypto/sha2/sha512c.c:73–80  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

SHA512_TransformFunction · 0.70

Calls 1

be64decFunction · 0.85

Tested by

no test coverage detected