mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
Provide external definition of mbedtls_xor
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
63d114305f
commit
3c8eb7e990
@ -414,7 +414,7 @@ extern void (*mbedtls_test_hook_test_fail)( const char * test, int line, const c
|
|||||||
* \param b Pointer to input (buffer of at least \p n bytes)
|
* \param b Pointer to input (buffer of at least \p n bytes)
|
||||||
* \param n Number of bytes to process.
|
* \param n Number of bytes to process.
|
||||||
*/
|
*/
|
||||||
static inline void mbedtls_xor( unsigned char *r, unsigned char const *a, unsigned char const *b, size_t n )
|
inline void mbedtls_xor( unsigned char *r, unsigned char const *a, unsigned char const *b, size_t n )
|
||||||
{
|
{
|
||||||
#if defined(MBEDTLS_ALLOW_UNALIGNED_ACCESS)
|
#if defined(MBEDTLS_ALLOW_UNALIGNED_ACCESS)
|
||||||
uint32_t *a32 = (uint32_t *)a;
|
uint32_t *a32 = (uint32_t *)a;
|
||||||
|
@ -143,3 +143,8 @@ struct tm *mbedtls_platform_gmtime_r( const mbedtls_time_t *tt,
|
|||||||
void (*mbedtls_test_hook_test_fail)( const char *, int, const char *);
|
void (*mbedtls_test_hook_test_fail)( const char *, int, const char *);
|
||||||
#endif /* MBEDTLS_TEST_HOOKS */
|
#endif /* MBEDTLS_TEST_HOOKS */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Provide an external definition of mbedtls_xor so that the compiler
|
||||||
|
* has the option to not inline it
|
||||||
|
*/
|
||||||
|
extern inline void mbedtls_xor( unsigned char *r, unsigned char const *a, unsigned char const *b, size_t n );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user