RetroArch/deps/mbedtls/arc4_alt.h
2018-08-04 20:09:07 +02:00

10 lines
257 B
C

#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