xor cipher stream into dst */
| 242 | |
| 243 | /* xor cipher stream into dst */ |
| 244 | static void xor_cipher_stream(void *dst, const struct secret *k, size_t dstlen) |
| 245 | { |
| 246 | const u8 nonce[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
| 247 | |
| 248 | crypto_stream_chacha20_xor(dst, dst, dstlen, nonce, k->data); |
| 249 | } |
| 250 | |
| 251 | #define CHACHA20_BLOCK_BYTES 64 |
| 252 |
no outgoing calls
no test coverage detected