Changeset a67b9443 in rtems
- Timestamp:
- 02/06/23 16:57:28 (7 weeks ago)
- Branches:
- master
- Children:
- 63b21ad5
- Parents:
- 1d07dfa
- git-author:
- Sebastian Huber <sebastian.huber@…> (02/06/23 16:57:28)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (02/06/23 18:37:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libmd/sha512c.c
r1d07dfa ra67b9443 51 51 52 52 /* 53 * Encode a length len/4 vector of (uint64_t) into a length len vector of 54 * (unsigned char) in big-endian form. Assumes len is a multiple of 8. 55 */ 56 static void 53 * Encode a length (len + 7) / 8 vector of (uint64_t) into a length len 54 * vector of (unsigned char) in big-endian form. Assumes len is a 55 * multiple of 4. 56 */ 57 static inline void 57 58 be64enc_vect(unsigned char *dst, const uint64_t *src, size_t len) 58 59 { … … 61 62 for (i = 0; i < len / 8; i++) 62 63 be64enc(dst + i * 8, src[i]); 64 if (len % 8 == 4) 65 be32enc(dst + i * 8, src[i] >> 32); 63 66 } 64 67 65 68 /* 66 69 * Decode a big-endian length len vector of (unsigned char) into a length 67 * len/ 4vector of (uint64_t). Assumes len is a multiple of 8.68 */ 69 static void70 * len/8 vector of (uint64_t). Assumes len is a multiple of 8. 71 */ 72 static inline void 70 73 be64dec_vect(uint64_t *dst, const unsigned char *src, size_t len) 71 74 {
Note: See TracChangeset
for help on using the changeset viewer.