update she union for callback to be getUid not setUid

This commit is contained in:
night1rider
2026-03-24 12:53:13 -06:00
parent f081a08c5c
commit f8956abcc1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2140,8 +2140,8 @@ int wc_CryptoCb_SheGetUid(wc_SHE* she, const byte* uid, word32 uidSz,
cryptoInfo.she.she = she;
cryptoInfo.she.type = WC_SHE_GET_UID;
cryptoInfo.she.ctx = ctx;
cryptoInfo.she.op.setUid.uid = uid;
cryptoInfo.she.op.setUid.uidSz = uidSz;
cryptoInfo.she.op.getUid.uid = uid;
cryptoInfo.she.op.getUid.uidSz = uidSz;
ret = dev->cb(dev->devId, &cryptoInfo, dev->ctx);
}
+1 -1
View File
@@ -490,7 +490,7 @@ typedef struct wc_CryptoInfo {
struct {
const byte* uid;
word32 uidSz;
} setUid;
} getUid;
struct {
word32* counter;
} getCounter;