* Encode a length len/4 vector of (uint64_t) into a length len vector of * (unsigned char) in big-endian form. Assumes len is a multiple of 8. */
| 58 | * (unsigned char) in big-endian form. Assumes len is a multiple of 8. |
| 59 | */ |
| 60 | static void |
| 61 | be64enc_vect(unsigned char *dst, const uint64_t *src, size_t len) |
| 62 | { |
| 63 | size_t i; |
| 64 | |
| 65 | for (i = 0; i < len / 8; i++) |
| 66 | be64enc(dst + i * 8, src[i]); |
| 67 | } |
| 68 | |
| 69 | /* |
| 70 | * Decode a big-endian length len vector of (unsigned char) into a length |
no test coverage detected