1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

- Functions requiring File System functions can now be disables by undefining POLARSSL_FS_IO

This commit is contained in:
Paul Bakker
2011-04-25 15:28:35 +00:00
parent 15566e4396
commit 335db3f121
26 changed files with 306 additions and 152 deletions

View File

@ -35,7 +35,9 @@
#include "polarssl/md2.h"
#if defined(POLARSSL_FS_IO) || defined(POLARSSL_SELF_TEST)
#include <stdio.h>
#endif
static const unsigned char PI_SUBST[256] =
{
@ -175,6 +177,7 @@ void md2( const unsigned char *input, size_t ilen, unsigned char output[16] )
memset( &ctx, 0, sizeof( md2_context ) );
}
#if defined(POLARSSL_FS_IO)
/*
* output = MD2( file contents )
*/
@ -206,6 +209,7 @@ int md2_file( const char *path, unsigned char output[16] )
fclose( f );
return( 0 );
}
#endif /* POLARSSL_FS_IO */
/*
* MD2 HMAC context setup