mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-30 03:06:29 +01:00
Added mechanism to provide alternative cipher / hash implementations
All symmetric cipher algorithms and hash algorithms now include support for a POLARSSL_XXX_ALT flag that prevents the definition of the algorithm context structure and all 'core' functions. (cherry picked from commit 4087c47043cb7b8b51e69f1de47ab6a2bccead3d)
This commit is contained in:
parent
28837ff2f4
commit
90995b5ce3
26 changed files with 327 additions and 33 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Camellia implementation
|
||||
*
|
||||
* Copyright (C) 2006-2010, Brainspark B.V.
|
||||
* Copyright (C) 2006-2013, Brainspark B.V.
|
||||
*
|
||||
* This file is part of PolarSSL (http://www.polarssl.org)
|
||||
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
|
||||
|
|
@ -35,6 +35,8 @@
|
|||
|
||||
#include "polarssl/camellia.h"
|
||||
|
||||
#if !defined(POLARSSL_CAMELLIA_ALT)
|
||||
|
||||
/*
|
||||
* 32-bit integer manipulation macros (big endian)
|
||||
*/
|
||||
|
|
@ -656,6 +658,7 @@ int camellia_crypt_ctr( camellia_context *ctx,
|
|||
return( 0 );
|
||||
}
|
||||
#endif /* POLARSSL_CIPHER_MODE_CTR */
|
||||
#endif /* !POLARSSL_CAMELLIA_ALT */
|
||||
|
||||
#if defined(POLARSSL_SELF_TEST)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue