Skip to content

Commit

Permalink
cryptonight: warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Mar 11, 2015
1 parent 7e9fc08 commit 1ef62af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/oaes_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ OAES_RET oaes_key_export( OAES_CTX * ctx,
// header
memcpy( data, oaes_header, OAES_BLOCK_SIZE );
data[5] = 0x01;
data[7] = _ctx->key->data_len;
data[7] = (uint8_t) _ctx->key->data_len;
memcpy( data + OAES_BLOCK_SIZE, _ctx->key->data, _ctx->key->data_len );

return OAES_RET_SUCCESS;
Expand Down Expand Up @@ -1217,7 +1217,7 @@ OAES_RET oaes_encrypt( OAES_CTX * ctx,

// insert pad
for( _j = 0; _j < OAES_BLOCK_SIZE - _block_size; _j++ )
_block[ _block_size + _j ] = _j + 1;
_block[_block_size + _j] = (uint8_t)_j + 1;

// CBC
if( _ctx->options & OAES_OPTION_CBC )
Expand Down

0 comments on commit 1ef62af

Please sign in to comment.