mirror of
https://github.com/Legrandin/pycryptodome.git
synced 2025-10-19 16:03:45 +00:00
pct-speedtest.py: Add tests for SHA224/SHA384/SHA512
This commit is contained in:
parent
3ba082f25a
commit
40184dc344
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,7 @@ import sys
|
|||
|
||||
from Crypto.PublicKey import RSA
|
||||
from Crypto.Cipher import AES, ARC2, ARC4, Blowfish, CAST, DES3, DES, XOR
|
||||
from Crypto.Hash import MD2, MD4, MD5, SHA256, SHA
|
||||
from Crypto.Hash import MD2, MD4, MD5, SHA, SHA224, SHA256, SHA384, SHA512
|
||||
from Crypto.Random import get_random_bytes
|
||||
try:
|
||||
from Crypto.Hash import RIPEMD
|
||||
|
@ -198,7 +198,10 @@ class Benchmark:
|
|||
("MD4", MD4),
|
||||
("MD5", MD5),
|
||||
("SHA", SHA),
|
||||
("SHA224", SHA224),
|
||||
("SHA256", SHA256),
|
||||
("SHA384", SHA384),
|
||||
("SHA512", SHA512),
|
||||
]
|
||||
if RIPEMD is not None:
|
||||
hash_specs += [("RIPEMD", RIPEMD)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue