Skip to content

Commit 4d81725

Browse files
authored
Merge pull request #6832 from jpbland1/cryptocb-key-context
add devCtx to all keys for use in cryptoCb
2 parents 9404372 + f4acc8f commit 4d81725

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

wolfssl/wolfcrypt/curve25519.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ struct curve25519_key {
8787
WC_ASYNC_DEV asyncDev;
8888
#endif
8989
#if defined(WOLF_CRYPTO_CB)
90+
void* devCtx;
9091
int devId;
9192
#endif
9293

wolfssl/wolfcrypt/ecc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ struct ecc_key {
505505
byte pubkey_raw[ECC_MAX_CRYPTO_HW_PUBKEY_SIZE];
506506
#endif
507507
#if defined(PLUTON_CRYPTO_ECC) || defined(WOLF_CRYPTO_CB)
508+
void* devCtx;
508509
int devId;
509510
#endif
510511
#if defined(HAVE_PKCS11)

wolfssl/wolfcrypt/ed25519.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ struct ed25519_key {
103103
WC_ASYNC_DEV asyncDev;
104104
#endif
105105
#if defined(WOLF_CRYPTO_CB)
106+
void* devCtx;
106107
int devId;
107108
#endif
108109
void *heap;

wolfssl/wolfcrypt/ed448.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ struct ed448_key {
9292
WC_ASYNC_DEV asyncDev;
9393
#endif
9494
#if defined(WOLF_CRYPTO_CB)
95+
void* devCtx;
9596
int devId;
9697
#endif
9798
void *heap;

wolfssl/wolfcrypt/rsa.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ struct RsaKey {
209209
byte keyIdSet;
210210
#endif
211211
#ifdef WOLF_CRYPTO_CB
212+
void* devCtx;
212213
int devId;
213214
#endif
214215
#if defined(HAVE_PKCS11)

0 commit comments

Comments
 (0)