View | Details | Raw Unified | Return to bug 266863
Collapse All | Expand All

(-)b/sys/crypto/sha2/sha512c.c (-2 / +4 lines)
Lines 68-74 be64enc_vect(unsigned char *dst, const uint64_t *src, size_t len) Link Here
68
{
68
{
69
	size_t i;
69
	size_t i;
70
70
71
	for (i = 0; i < len / 8; i++)
71
        /*
72
         * Round the length up to the next multiple of eight for SHA512_224_Final().
73
         */
74
	for (i = 0; i < (len + 7) / 8; i++)
72
		be64enc(dst + i * 8, src[i]);
75
		be64enc(dst + i * 8, src[i]);
73
}
76
}
74
77
75
- 

Return to bug 266863