diff options
author | Jack Lloyd <[email protected]> | 2017-06-30 10:56:41 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-06-30 10:56:41 -0400 |
commit | a296f8e629d968642989d9d385c2b089840cf6fb (patch) | |
tree | c9dfda39871d691260c0e07508752ccf8f50b6fd /src/lib/pubkey/sm2 | |
parent | 6ac870e6d81d98420a102661a27ad9b521da86f5 (diff) |
Remove debug prints
Diffstat (limited to 'src/lib/pubkey/sm2')
-rw-r--r-- | src/lib/pubkey/sm2/sm2.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/pubkey/sm2/sm2.cpp b/src/lib/pubkey/sm2/sm2.cpp index 45a51b4cc..5c5b50792 100644 --- a/src/lib/pubkey/sm2/sm2.cpp +++ b/src/lib/pubkey/sm2/sm2.cpp @@ -1,6 +1,6 @@ /* * SM2 -* (C) Ribose Inc +* (C) 2017 Ribose Inc * * Botan is released under the Simplified BSD License (see license.txt) */ @@ -11,9 +11,6 @@ #include <botan/reducer.h> #include <botan/hash.h> -#include <iostream> -#include <botan/hex.h> - namespace Botan { bool SM2_Signature_PrivateKey::check_key(RandomNumberGenerator& rng, @@ -71,19 +68,6 @@ std::vector<uint8_t> compute_za(HashFunction& hash, std::vector<uint8_t> za(hash.output_length()); hash.final(za.data()); - #if 0 - std::cout << "Ent0 " << (int)get_byte(0, uid_len) << "\n"; - std::cout << "Ent1 " << (int)get_byte(1, uid_len) << "\n"; - std::cout << "ID " << user_id << "\n"; - std::cout << "A = " << Botan::hex_encode(BigInt::encode_1363(domain.get_curve().get_a(), p_bytes)) << "\n"; - std::cout << "B = " << Botan::hex_encode(BigInt::encode_1363(domain.get_curve().get_b(), p_bytes)) << "\n"; - std::cout << "xG = " << Botan::hex_encode(BigInt::encode_1363(domain.get_base_point().get_affine_x(), p_bytes)) << "\n"; - std::cout << "yG = " << Botan::hex_encode(BigInt::encode_1363(domain.get_base_point().get_affine_y(), p_bytes)) << "\n"; - std::cout << "xP = " << Botan::hex_encode(BigInt::encode_1363(pubkey.get_affine_x(), p_bytes)) << "\n"; - std::cout << "yP = " << Botan::hex_encode(BigInt::encode_1363(pubkey.get_affine_y(), p_bytes)) << "\n"; - std::cout << "ZA = " << hex_encode(za) << "\n"; - #endif - return za; } |