Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add SHA-1 Module #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 26, 2019
Merged

Add SHA-1 Module #6

merged 4 commits into from
Dec 26, 2019

Conversation

brentru
Copy link
Member

@brentru brentru commented Dec 26, 2019

  • Added SHA-1 implementation based on Python-SHA1 implementation.
    • Small modifications for CircuitPython/library compatibility.
  • Added AJ Alt to LICENSE file
  • Added SHA1 module to simpletest

Addresses #5

Functionality tested against CPython hashlib

Simpletest tested on Adafruit CircuitPython 5.0.0-beta.2 on 2019-12-20; Adafruit PyPortal with samd51j20

code.py output:

--SHA1--
Msg Digest: 62c6e222ccd72f21b8ce0c61f42860d6c70954c0
Msg Digest Size: 20
Msg Block Size: 64
--SHA224--
Msg Digest: 744535a10879be6b18bbcdd135032891346f530a7845d580f7869f36
Msg Digest Size: 28
Msg Block Size: 64
--SHA256--
Msg Digest: 3ce8334ca39e66afb9c37d571da4caad68ab4a8bcbd6d584f75e4268e36c0954
Msg Digest Size: 32
Msg Block Size: 64
--SHA384--
Msg Digest: 7a12f0815f5511b8ba52c67922d1ae86dfd9bfcc4e0799ad89a9f01fc526c8f074ddb5948c06db9893536f2e65c7621b
Msg Digest Size: 48
Msg Block Size: 128
--SHA512--
Msg Digest: 20a88a9b04aa490e457f8980e57331bc85c4d6ca30735a9e502f817e74011a9ece07078e53adf70c232ac91f6c79d4cd6cc69426cd77535645fe9016a71122c2
Msg Digest Size: 64
Msg Block Size: 128

@brentru brentru requested a review from a team December 26, 2019 22:28
@ladyada ladyada merged commit c0330a1 into adafruit:master Dec 26, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 28, 2019
Updating https://github.com/adafruit/Adafruit_CircuitPython_hashlib to 1.2.0 from 1.0.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_hashlib#7 from brentru/add-argument-to-sha1
  > Merge pull request adafruit/Adafruit_CircuitPython_hashlib#6 from brentru/add-sha-1
  > Merge pull request adafruit/Adafruit_CircuitPython_hashlib#4 from adafruit/dherrada-patch-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants