File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ In this function the nwkskey is passed to upper layer of LMIC.
154
154
155
155
LMIC_SecureElement_Error_t
156
156
LMIC_SecureElement_Default_getNwkSKey (LMIC_SecureElement_Aes128Key_t * pNwkSKey , LMIC_SecureElement_KeySelector_t iKey ) {
157
- os_copyMem (pNwkSKey -> bytes ,s_nwkSKey .bytes , 16 );
157
+ os_copyMem (pNwkSKey -> bytes , s_nwkSKey .bytes , sizeof ( pNwkSKey -> bytes ) );
158
158
}
159
159
160
160
/*!
@@ -169,7 +169,7 @@ In this function the appskey is passed to upper layer of LMIC.
169
169
170
170
LMIC_SecureElement_Error_t
171
171
LMIC_SecureElement_Default_getAppSKey (LMIC_SecureElement_Aes128Key_t * pAppSKey , LMIC_SecureElement_KeySelector_t iKey ) {
172
- os_copyMem (pAppSKey -> bytes ,s_appSKey .bytes , 16 );
172
+ os_copyMem (pAppSKey -> bytes , s_appSKey .bytes , sizeof ( pAppSKey -> bytes ) );
173
173
}
174
174
175
175
// ================================================================================
You can’t perform that action at this time.
0 commit comments