mirror of
https://github.com/openssl/openssl.git
synced 2024-12-21 06:09:35 +08:00
7cc355c2e4
Added Algorithm names AES-128-CBC-CTS, AES-192-CBC-CTS and AES-256-CBC-CTS. CS1, CS2 and CS3 variants are supported. Only single shot updates are supported. The cipher returns the mode EVP_CIPH_CBC_MODE (Internally it shares the aes_cbc cipher code). This would allow existing code that uses AES_CBC to switch to the CTS variant without breaking code that tests for this mode. Because it shares the aes_cbc code the cts128.c functions could not be used directly. The cipher returns the flag EVP_CIPH_FLAG_CTS. EVP_CIPH_FLAG_FIPS & EVP_CIPH_FLAG_NON_FIPS_ALLOW have been deprecated. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12094)
17 lines
565 B
C
17 lines
565 B
C
/*
|
|
* Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
|
|
#include "crypto/evp.h"
|
|
|
|
OSSL_FUNC_cipher_update_fn aes_cbc_cts_block_update;
|
|
OSSL_FUNC_cipher_final_fn aes_cbc_cts_block_final;
|
|
|
|
const char *aes_cbc_cts_mode_id2name(unsigned int id);
|
|
int aes_cbc_cts_mode_name2id(const char *name);
|