From a296f8e629d968642989d9d385c2b089840cf6fb Mon Sep 17 00:00:00 2001
From: Jack Lloyd <jack@randombit.net>
Date: Fri, 30 Jun 2017 10:56:41 -0400
Subject: Remove debug prints

---
 src/lib/pubkey/sm2/sm2.cpp | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

(limited to 'src/lib/pubkey/sm2')

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;
    }
 
-- 
cgit v1.2.3