Skip to content

Commit a1b0018

Browse files
author
Christophe Oosterlynck
committed
initial population of Hash module
not very usable, just an initial structure
1 parent 99962e5 commit a1b0018

File tree

13 files changed

+2292
-10
lines changed

13 files changed

+2292
-10
lines changed

src/CryptoPlus/Hash.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/CryptoPlus/Hash/RIPEMD.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import Crypto.Hash.RIPEMD
2+
3+
def new():
4+
return

src/CryptoPlus/Hash/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# hash functions of pycrypto can be just imported
2+
# wrapping might be a better idea if docstrings need to be expanded
3+
# wrapping in Cipher was needed to make the new chaining modes available
4+
from Crypto.Hash import RIPEMD, SHA, SHA256, MD5, MD2, MD4, HMAC
5+
6+
__all__ = ["SHA","SHA256","MD5","MD2","MD4","HMAC","RIPEMD"]
7+

0 commit comments

Comments
 (0)