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