Skip to content

Commit

Permalink
remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekram committed Jun 3, 2019
1 parent e7ff37f commit 3f90d89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ ENV/
# IDEA
.idea
.pytest_cache/
.coverage
.coverage
.DS_Store
5 changes: 1 addition & 4 deletions pyas2lib/cms.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ def sign_message(data_to_sign, digest_alg, sign_key,
digest_func = hashlib.new(digest_alg)
digest_func.update(data_to_sign)
message_digest = digest_func.digest()
print(data_to_sign)
print(digest_alg, message_digest)

class SmimeCapability(core.Sequence):
_fields = [
('0', core.Any, {'optional': True}),
Expand Down Expand Up @@ -378,10 +377,8 @@ def verify_message(data_to_verify, signature, verify_cert):
message_digest += d

digest_func = hashlib.new(digest_alg)
print(data_to_verify)
digest_func.update(data_to_verify)
calc_message_digest = digest_func.digest()
print(digest_alg, calc_message_digest)
if message_digest != calc_message_digest:
raise IntegrityError('Failed to verify message signature: '
'Message Digest does not match.')
Expand Down

0 comments on commit 3f90d89

Please sign in to comment.