Skip to content

Commit 5eeadd9

Browse files
committed
Merge pull request #3 from reissjason/patch-1
Patch merged. Thanks for the correction.
2 parents bfc521c + 7474a04 commit 5eeadd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mac/LoRaMacCrypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void LoRaMacJoinComputeMic( uint8_t *buffer, uint16_t size, const uint8_t *key,
166166
void LoRaMacJoinDecrypt( uint8_t *buffer, uint16_t size, const uint8_t *key, uint8_t *decBuffer )
167167
{
168168
memset1( AesContext.ksch, '\0', 240 );
169-
aes_set_key( key, size, &AesContext );
169+
aes_set_key( key, 16, &AesContext );
170170
aes_encrypt( buffer, decBuffer, &AesContext );
171171
// Check if optional CFList is included
172172
if( size >= 16 )

0 commit comments

Comments
 (0)