HV: crypto lib code clean up

Modify and simplify the code:
1. Removed unused definitions and pre-compile code
2. remove test code
3. Code style

Signed-off-by: Chen, Gang G <gang.g.chen@intel.com>
This commit is contained in:
ggchen
2018-08-08 13:52:11 +08:00
committed by lijinxia
parent 71577f6daf
commit 12aa2a40a2
8 changed files with 27 additions and 1198 deletions

View File

@@ -18,17 +18,8 @@
*
* This file is part of mbed TLS (https://tls.mbed.org)
*/
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
#if defined(MBEDTLS_HKDF_C)
#include <string.h>
#include "mbedtls/hkdf.h"
#include "mbedtls/platform_util.h"
#include "hkdf.h"
int mbedtls_hkdf( const mbedtls_md_info_t *md, const unsigned char *salt,
size_t salt_len, const unsigned char *ikm, size_t ikm_len,
@@ -188,5 +179,3 @@ exit:
return( ret );
}
#endif /* MBEDTLS_HKDF_C */