mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-28 00:58:05 +08:00
Remove MBEDTLS_CCM_ALT
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
4137609776
commit
b4914cfeb5
@ -352,7 +352,6 @@
|
|||||||
|
|
||||||
//#define MBEDTLS_ARIA_ALT
|
//#define MBEDTLS_ARIA_ALT
|
||||||
//#define MBEDTLS_CAMELLIA_ALT
|
//#define MBEDTLS_CAMELLIA_ALT
|
||||||
//#define MBEDTLS_CCM_ALT
|
|
||||||
//#define MBEDTLS_CMAC_ALT
|
//#define MBEDTLS_CMAC_ALT
|
||||||
//#define MBEDTLS_DES_ALT
|
//#define MBEDTLS_DES_ALT
|
||||||
//#define MBEDTLS_GCM_ALT
|
//#define MBEDTLS_GCM_ALT
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
/* ccm_alt.h with dummy types for MBEDTLS_CCM_ALT */
|
|
||||||
/*
|
|
||||||
* Copyright The Mbed TLS Contributors
|
|
||||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CCM_ALT_H
|
|
||||||
#define CCM_ALT_H
|
|
||||||
|
|
||||||
typedef struct mbedtls_ccm_context {
|
|
||||||
int dummy;
|
|
||||||
}
|
|
||||||
mbedtls_ccm_context;
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* ccm_alt.h */
|
|
@ -36,7 +36,6 @@ CCM lengths #6 tag length not even
|
|||||||
ccm_lengths:5:10:5:7:MBEDTLS_ERR_CCM_BAD_INPUT
|
ccm_lengths:5:10:5:7:MBEDTLS_ERR_CCM_BAD_INPUT
|
||||||
|
|
||||||
CCM lengths #7 AD too long (2^16 - 2^8)
|
CCM lengths #7 AD too long (2^16 - 2^8)
|
||||||
depends_on:!MBEDTLS_CCM_ALT
|
|
||||||
ccm_lengths:5:10:65280:8:MBEDTLS_ERR_CCM_BAD_INPUT
|
ccm_lengths:5:10:65280:8:MBEDTLS_ERR_CCM_BAD_INPUT
|
||||||
|
|
||||||
CCM lengths #8 msg too long for this IV length (2^16, q = 2)
|
CCM lengths #8 msg too long for this IV length (2^16, q = 2)
|
||||||
|
@ -58,10 +58,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CCM_ALT)
|
|
||||||
// Regular implementation
|
|
||||||
//
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The CCM context-type definition. The CCM context is passed
|
* \brief The CCM context-type definition. The CCM context is passed
|
||||||
* to the APIs called.
|
* to the APIs called.
|
||||||
@ -94,10 +90,6 @@ typedef struct mbedtls_ccm_context {
|
|||||||
}
|
}
|
||||||
mbedtls_ccm_context;
|
mbedtls_ccm_context;
|
||||||
|
|
||||||
#else /* MBEDTLS_CCM_ALT */
|
|
||||||
#include "ccm_alt.h"
|
|
||||||
#endif /* MBEDTLS_CCM_ALT */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief This function initializes the specified CCM context,
|
* \brief This function initializes the specified CCM context,
|
||||||
* to make references valid, and prepare the context
|
* to make references valid, and prepare the context
|
||||||
|
@ -38,9 +38,6 @@
|
|||||||
#endif /* MBEDTLS_SELF_TEST && MBEDTLS_AES_C */
|
#endif /* MBEDTLS_SELF_TEST && MBEDTLS_AES_C */
|
||||||
#endif /* MBEDTLS_PLATFORM_C */
|
#endif /* MBEDTLS_PLATFORM_C */
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CCM_ALT)
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize context
|
* Initialize context
|
||||||
*/
|
*/
|
||||||
@ -626,7 +623,6 @@ int mbedtls_ccm_auth_decrypt(mbedtls_ccm_context *ctx, size_t length,
|
|||||||
iv, iv_len, add, add_len,
|
iv, iv_len, add, add_len,
|
||||||
input, output, tag, tag_len);
|
input, output, tag, tag_len);
|
||||||
}
|
}
|
||||||
#endif /* !MBEDTLS_CCM_ALT */
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_CCM_GCM_CAN_AES)
|
#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_CCM_GCM_CAN_AES)
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user