mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Define specific mode for ChachaPoly
The TLS layer is checking for mode, such as GCM, CCM, CBC, STREAM. ChachaPoly needs to have its own mode, even if it's used just one cipher, in order to allow consistent handling of mode in the TLS layer.
This commit is contained in:
@ -2040,7 +2040,7 @@ static const mbedtls_cipher_base_t chachapoly_base_info = {
|
||||
};
|
||||
static const mbedtls_cipher_info_t chachapoly_info = {
|
||||
MBEDTLS_CIPHER_CHACHA20_POLY1305,
|
||||
MBEDTLS_MODE_NONE,
|
||||
MBEDTLS_MODE_CHACHAPOLY,
|
||||
256,
|
||||
"CHACHA20-POLY1305",
|
||||
12,
|
||||
|
Reference in New Issue
Block a user