mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-17 20:42:44 +00:00
Remove MBEDTLS_CAMELLIA_ALT
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
c7cb810c22
commit
e9fe311ea6
@ -351,7 +351,6 @@
|
|||||||
//#define MBEDTLS_TIMING_ALT
|
//#define MBEDTLS_TIMING_ALT
|
||||||
|
|
||||||
//#define MBEDTLS_ARIA_ALT
|
//#define MBEDTLS_ARIA_ALT
|
||||||
//#define MBEDTLS_CAMELLIA_ALT
|
|
||||||
//#define MBEDTLS_CMAC_ALT
|
//#define MBEDTLS_CMAC_ALT
|
||||||
//#define MBEDTLS_DES_ALT
|
//#define MBEDTLS_DES_ALT
|
||||||
//#define MBEDTLS_NIST_KW_ALT
|
//#define MBEDTLS_NIST_KW_ALT
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
/* camellia_alt.h with dummy types for MBEDTLS_CAMELLIA_ALT */
|
|
||||||
/*
|
|
||||||
* Copyright The Mbed TLS Contributors
|
|
||||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CAMELLIA_ALT_H
|
|
||||||
#define CAMELLIA_ALT_H
|
|
||||||
|
|
||||||
typedef struct mbedtls_camellia_context {
|
|
||||||
int dummy;
|
|
||||||
}
|
|
||||||
mbedtls_camellia_context;
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* camellia_alt.h */
|
|
@ -31,10 +31,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CAMELLIA_ALT)
|
|
||||||
// Regular implementation
|
|
||||||
//
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief CAMELLIA context structure
|
* \brief CAMELLIA context structure
|
||||||
*/
|
*/
|
||||||
@ -44,10 +40,6 @@ typedef struct mbedtls_camellia_context {
|
|||||||
}
|
}
|
||||||
mbedtls_camellia_context;
|
mbedtls_camellia_context;
|
||||||
|
|
||||||
#else /* MBEDTLS_CAMELLIA_ALT */
|
|
||||||
#include "camellia_alt.h"
|
|
||||||
#endif /* MBEDTLS_CAMELLIA_ALT */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Initialize a CAMELLIA context.
|
* \brief Initialize a CAMELLIA context.
|
||||||
*
|
*
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
#include "mbedtls/platform.h"
|
#include "mbedtls/platform.h"
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CAMELLIA_ALT)
|
|
||||||
|
|
||||||
static const unsigned char SIGMA_CHARS[6][8] =
|
static const unsigned char SIGMA_CHARS[6][8] =
|
||||||
{
|
{
|
||||||
{ 0xa0, 0x9e, 0x66, 0x7f, 0x3b, 0xcc, 0x90, 0x8b },
|
{ 0xa0, 0x9e, 0x66, 0x7f, 0x3b, 0xcc, 0x90, 0x8b },
|
||||||
@ -657,7 +655,6 @@ int mbedtls_camellia_crypt_ctr(mbedtls_camellia_context *ctx,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_CIPHER_MODE_CTR */
|
#endif /* MBEDTLS_CIPHER_MODE_CTR */
|
||||||
#endif /* !MBEDTLS_CAMELLIA_ALT */
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_SELF_TEST)
|
#if defined(MBEDTLS_SELF_TEST)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user