From 947110765f7815649e8ab888ca772563158e46d4 Mon Sep 17 00:00:00 2001 From: Oleh Date: Tue, 20 Feb 2024 18:16:08 +0000 Subject: [PATCH] add more logs --- DKGCrypto.cpp | 2 +- secure_enclave/secure_enclave.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DKGCrypto.cpp b/DKGCrypto.cpp index 44a60afa..ff8f91cd 100644 --- a/DKGCrypto.cpp +++ b/DKGCrypto.cpp @@ -474,7 +474,7 @@ vector getBLSPubKey(const char *encryptedKeyHex) { spdlog::debug("Encrypted key length: {}", decKeyLen); spdlog::debug("Encrypted key is:"); for (size_t i = 0; i < decKeyLen; ++i) { - std::cout << encrKey[i] << ' '; + std::cout << (int)encrKey[i] << ' '; } SAFE_CHAR_BUF(pubKey, 320) diff --git a/secure_enclave/secure_enclave.c b/secure_enclave/secure_enclave.c index ad92b060..9bc128fe 100644 --- a/secure_enclave/secure_enclave.c +++ b/secure_enclave/secure_enclave.c @@ -1366,7 +1366,7 @@ trustedGetBlsPubKey(int *errStatus, char *errString, uint8_t *encryptedPrivateKe LOG_DEBUG("Decrypted secret key"); LOG_DEBUG(skey_hex); - skey_hex[ECDSA_SKEY_LEN - 1] = 0; + skey_hex[BLS_KEY_LENGTH - 1] = 0; status = calc_bls_public_key(skey_hex, bls_pub_key);