2
0

chacha20.h 312 B

12345678910111213
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright (C) 2022 Felix Fietkau <nbd@nbd.name>
  4. */
  5. #ifndef __UNETD_CHACHA20_H
  6. #define __UNETD_CHACHA20_H
  7. #define CHACHA20_NONCE_SIZE 8
  8. #define CHACHA20_KEY_SIZE 32
  9. void chacha20_encrypt_msg(void *msg, size_t len, const void *nonce, const void *key);
  10. #endif