File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ void crypto_uninit(void)
104
104
/* Implementation that should never be optimized out by the compiler */
105
105
void crypto_zeroize (void * v , size_t n )
106
106
{
107
- volatile unsigned char * p = (unsigned char * ) v ;
107
+ volatile unsigned char * p = (volatile unsigned char * ) v ;
108
108
while (n -- ) {
109
109
* p ++ = 0 ;
110
110
}
@@ -113,7 +113,7 @@ void crypto_zeroize(void *v, size_t n)
113
113
/* Implementation that should never be optimized out by the compiler */
114
114
void crypto_zeroize32 (uint32_t * v , size_t n )
115
115
{
116
- volatile uint32_t * p = (uint32_t * ) v ;
116
+ volatile uint32_t * p = (volatile uint32_t * ) v ;
117
117
while (n -- ) {
118
118
* p ++ = 0 ;
119
119
}
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ void crypto_uninit(void)
100
100
/* Implementation that should never be optimized out by the compiler */
101
101
void crypto_zeroize (void * v , size_t n )
102
102
{
103
- volatile unsigned char * p = (unsigned char * ) v ;
103
+ volatile unsigned char * p = (volatile unsigned char * ) v ;
104
104
while (n -- ) {
105
105
* p ++ = 0 ;
106
106
}
You can’t perform that action at this time.
0 commit comments