|
34 | 34 | typedef struct LmsKey LmsKey; |
35 | 35 |
|
36 | 36 | /* Private key write and read callbacks. */ |
37 | | -typedef int (*write_private_key_cb)(const byte * priv, word32 privSz, void *context); |
38 | | -typedef int (*read_private_key_cb)(byte * priv, word32 privSz, void *context); |
| 37 | +typedef int (*wc_lms_write_private_key_cb)(const byte * priv, word32 privSz, void *context); |
| 38 | +typedef int (*wc_lms_read_private_key_cb)(byte * priv, word32 privSz, void *context); |
39 | 39 |
|
40 | 40 | /* Return codes returned by private key callbacks. */ |
41 | 41 | enum wc_LmsRc { |
@@ -138,9 +138,9 @@ WOLFSSL_API int wc_LmsKey_GetParameters(const LmsKey * key, int * levels, |
138 | 138 | int * height, int * winternitz); |
139 | 139 | #ifndef WOLFSSL_LMS_VERIFY_ONLY |
140 | 140 | WOLFSSL_API int wc_LmsKey_SetWriteCb(LmsKey * key, |
141 | | - write_private_key_cb write_cb); |
| 141 | + wc_lms_write_private_key_cb write_cb); |
142 | 142 | WOLFSSL_API int wc_LmsKey_SetReadCb(LmsKey * key, |
143 | | - read_private_key_cb read_cb); |
| 143 | + wc_lms_read_private_key_cb read_cb); |
144 | 144 | WOLFSSL_API int wc_LmsKey_SetContext(LmsKey * key, void * context); |
145 | 145 | WOLFSSL_API int wc_LmsKey_MakeKey(LmsKey * key, WC_RNG * rng); |
146 | 146 | WOLFSSL_API int wc_LmsKey_Reload(LmsKey * key); |
|
0 commit comments