xor cipher stream into dst */
| 214 | |
| 215 | /* xor cipher stream into dst */ |
| 216 | static void xor_cipher_stream(void *dst, const struct secret *k, size_t dstlen) |
| 217 | { |
| 218 | const u8 nonce[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
| 219 | |
| 220 | crypto_stream_chacha20_xor(dst, dst, dstlen, nonce, k->data); |
| 221 | } |
| 222 | |
| 223 | #define CHACHA20_BLOCK_BYTES 64 |
| 224 |
no outgoing calls
no test coverage detected