Skip to content

Commit 06d05cf

Browse files
cmickeybprakashngit
authored andcommitted
remove some of the more verbose debugging statements from keys
Signed-off-by: Mic Bowman <[email protected]>
1 parent 5db8889 commit 06d05cf

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

python/pdo/common/keys.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ def verify(self, message, encoded_signature, encoding='b64') :
154154
:param signature: encoded signature
155155
:param encoding: the encoding used for the signature; one of raw, hex, b64
156156
"""
157-
logger.debug("signature for verification: %s", encoded_signature)
158157

159158
if type(message) is bytes :
160159
message_byte_array = message
@@ -172,9 +171,6 @@ def verify(self, message, encoded_signature, encoding='b64') :
172171
else :
173172
raise ValueError('unknown encoding; {0}'.format(encoding))
174173

175-
logger.debug("verifying key: %s", self._verifying_key.Serialize())
176-
logger.debug("signature for verification: %s", crypto.byte_array_to_hex(decoded_signature))
177-
178174
result = self._verifying_key.VerifySignature(message_byte_array, decoded_signature)
179175
if result < 0 :
180176
raise Error('malformed signature');
@@ -207,9 +203,6 @@ def encrypt(self, message, encoding = 'raw') :
207203
else :
208204
raise ValueError('unknown encoding; {0}'.format(encoding))
209205

210-
logger.debug("message: %s", message)
211-
logger.debug("encrypted message: %s", encoded_bytes)
212-
213206
return encoded_bytes
214207

215208
# -----------------------------------------------------------------
@@ -273,7 +266,6 @@ def verify(self, message, encoded_signature, encoding = 'hex') :
273266
:param signature: encoded signature
274267
:param encoding: the encoding used for the signature; one of raw, hex, b64
275268
"""
276-
logger.debug("signature for verification: %s", encoded_signature)
277269

278270
if type(message) is bytes :
279271
message_byte_array = message
@@ -323,7 +315,4 @@ def sign(self, message, encoding='hex') :
323315
else :
324316
raise ValueError('unknown encoding; {0}'.format(encoding))
325317

326-
logger.debug("message: %s", message)
327-
logger.debug("signature: %s", encoded_signature)
328-
329318
return encoded_signature

0 commit comments

Comments
 (0)