mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-08-31 07:19:57 +00:00
Add mbedtls_chacha20_check_counter_wrap to header
Signed-off-by: Ben Taylor <[email protected]>
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "chacha20_internal.h"
|
||||
|
||||
#include "mbedtls/platform.h"
|
||||
|
||||
#if !defined(MBEDTLS_CHACHA20_ALT)
|
||||
|
||||
@@ -17,13 +17,12 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "chacha20_internal.h"
|
||||
|
||||
#include "mbedtls/platform.h"
|
||||
|
||||
#if !defined(MBEDTLS_CHACHAPOLY_ALT)
|
||||
|
||||
int mbedtls_chacha20_check_counter_wrap(const mbedtls_chacha20_context *ctx,
|
||||
size_t size);
|
||||
|
||||
#define CHACHAPOLY_STATE_INIT (0)
|
||||
#define CHACHAPOLY_STATE_AAD (1)
|
||||
#define CHACHAPOLY_STATE_CIPHERTEXT (2) /* Encrypting or decrypting */
|
||||
|
||||
Reference in New Issue
Block a user