File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -207,20 +207,25 @@ WOLFSSL_API void wc_CryptoCb_InfoString(wc_CryptoInfo* info)
207207 info -> cipher .type , info -> cipher .ctx );
208208 }
209209#endif /* !NO_AES || !NO_DES3 */
210+ #if !defined(NO_SHA ) || !defined(NO_SHA256 ) || \
211+ defined(WOLFSSL_SHA512 ) || defined(WOLFSSL_SHA384 ) || defined(WOLFSSL_SHA3 )
210212 else if (info -> algo_type == WC_ALGO_TYPE_HASH ) {
211213 printf ("Crypto CB: %s %s (%d) (%p ctx) %s\n" ,
212214 GetAlgoTypeStr (info -> algo_type ),
213215 GetHashTypeStr (info -> hash .type ),
214216 info -> hash .type , info -> hash .ctx ,
215217 (info -> hash .in != NULL ) ? "Update" : "Final" );
216218 }
219+ #endif
220+ #ifndef NO_HMAC
217221 else if (info -> algo_type == WC_ALGO_TYPE_HMAC ) {
218222 printf ("Crypto CB: %s %s (%d) (%p ctx) %s\n" ,
219223 GetAlgoTypeStr (info -> algo_type ),
220224 GetHashTypeStr (info -> hmac .macType ),
221225 info -> hmac .macType , info -> hmac .hmac ,
222226 (info -> hmac .in != NULL ) ? "Update" : "Final" );
223227 }
228+ #endif
224229#ifdef WOLFSSL_CMAC
225230 else if (info -> algo_type == WC_ALGO_TYPE_CMAC ) {
226231 printf ("Crypto CB: %s %s (%d) (%p ctx) %s %s %s\n" ,
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ typedef struct wc_CryptoInfo {
375375 } cipher ;
376376#endif /* !NO_AES || !NO_DES3 */
377377#if !defined(NO_SHA ) || !defined(NO_SHA256 ) || \
378- defined(WOLFSSL_SHA512 ) || defined(WOLFSSL_SHA384 )
378+ defined(WOLFSSL_SHA384 ) || defined( WOLFSSL_SHA512 ) || defined(WOLFSSL_SHA3 )
379379 struct {
380380 int type ; /* enum wc_HashType */
381381 const byte * in ;
You can’t perform that action at this time.
0 commit comments