Skip to content

Commit

Permalink
Merge pull request #3 from reissjason/patch-1
Browse files Browse the repository at this point in the history
Patch merged. Thanks for the correction.
  • Loading branch information
mluis1 committed Apr 30, 2015
2 parents bfc521c + 7474a04 commit 5eeadd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mac/LoRaMacCrypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void LoRaMacJoinComputeMic( uint8_t *buffer, uint16_t size, const uint8_t *key,
void LoRaMacJoinDecrypt( uint8_t *buffer, uint16_t size, const uint8_t *key, uint8_t *decBuffer )
{
memset1( AesContext.ksch, '\0', 240 );
aes_set_key( key, size, &AesContext );
aes_set_key( key, 16, &AesContext );
aes_encrypt( buffer, decBuffer, &AesContext );
// Check if optional CFList is included
if( size >= 16 )
Expand Down

0 comments on commit 5eeadd9

Please sign in to comment.