mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 03:07:29 +02:00
Add more information in the DEBUG_CRYPTOCB
.
This commit is contained in:
@ -186,16 +186,18 @@ WOLFSSL_API void wc_CryptoCb_InfoString(wc_CryptoInfo* info)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (info->algo_type == WC_ALGO_TYPE_CIPHER) {
|
else if (info->algo_type == WC_ALGO_TYPE_CIPHER) {
|
||||||
printf("Crypto CB: %s %s (%d)\n", GetAlgoTypeStr(info->algo_type),
|
printf("Crypto CB: %s %s (%d) (%p ctx)\n", GetAlgoTypeStr(info->algo_type),
|
||||||
GetCipherTypeStr(info->cipher.type), info->cipher.type);
|
GetCipherTypeStr(info->cipher.type), info->cipher.type, info->cipher.ctx);
|
||||||
}
|
}
|
||||||
else if (info->algo_type == WC_ALGO_TYPE_HASH) {
|
else if (info->algo_type == WC_ALGO_TYPE_HASH) {
|
||||||
printf("Crypto CB: %s %s (%d)\n", GetAlgoTypeStr(info->algo_type),
|
printf("Crypto CB: %s %s (%d) (%p ctx) %s\n", GetAlgoTypeStr(info->algo_type),
|
||||||
GetHashTypeStr(info->hash.type), info->hash.type);
|
GetHashTypeStr(info->hash.type), info->hash.type, info->hash.ctx,
|
||||||
|
(info->hash.in != NULL) ? "Update" : "Final");
|
||||||
}
|
}
|
||||||
else if (info->algo_type == WC_ALGO_TYPE_HMAC) {
|
else if (info->algo_type == WC_ALGO_TYPE_HMAC) {
|
||||||
printf("Crypto CB: %s %s (%d)\n", GetAlgoTypeStr(info->algo_type),
|
printf("Crypto CB: %s %s (%d) (%p ctx) %s\n", GetAlgoTypeStr(info->algo_type),
|
||||||
GetHashTypeStr(info->hmac.macType), info->hmac.macType);
|
GetHashTypeStr(info->hmac.macType), info->hmac.macType, info->hmac.hmac,
|
||||||
|
(info->hmac.in != NULL) ? "Update" : "Final");
|
||||||
}
|
}
|
||||||
#ifdef WOLF_CRYPTO_CB_CMD
|
#ifdef WOLF_CRYPTO_CB_CMD
|
||||||
else if (info->algo_type == WC_ALGO_TYPE_NONE) {
|
else if (info->algo_type == WC_ALGO_TYPE_NONE) {
|
||||||
|
@ -296,6 +296,7 @@ typedef struct wc_CryptoInfo {
|
|||||||
word32 sz;
|
word32 sz;
|
||||||
} des3;
|
} des3;
|
||||||
#endif
|
#endif
|
||||||
|
void* ctx;
|
||||||
#if HAVE_ANONYMOUS_INLINE_AGGREGATES
|
#if HAVE_ANONYMOUS_INLINE_AGGREGATES
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -326,6 +327,7 @@ typedef struct wc_CryptoInfo {
|
|||||||
#ifdef WOLFSSL_SHA512
|
#ifdef WOLFSSL_SHA512
|
||||||
wc_Sha512* sha512;
|
wc_Sha512* sha512;
|
||||||
#endif
|
#endif
|
||||||
|
void* ctx;
|
||||||
#if HAVE_ANONYMOUS_INLINE_AGGREGATES
|
#if HAVE_ANONYMOUS_INLINE_AGGREGATES
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user