RetroArch/deps/mbedtls/arc4_alt.h

10 lines
257 B
C
Raw Normal View History

2018-08-04 18:09:07 +00:00
#ifndef _ARC4_ALT_H
#define _ARC4_ALT_H
/* Implementation that should never be optimized out by the compiler */
static void mbedtls_zeroize( void *v, size_t n ) {
volatile unsigned char *p = (unsigned char*)v; while( n-- ) *p++ = 0;
}
#endif