Fix python3 test code
This commit is contained in:
parent
62c37e26e0
commit
24a5808201
1 changed files with 4 additions and 4 deletions
|
@ -322,9 +322,9 @@ def run_method(method):
|
||||||
def run_aead_method(method, key_len=16):
|
def run_aead_method(method, key_len=16):
|
||||||
|
|
||||||
print(method, ': [payload][tag]', key_len)
|
print(method, ': [payload][tag]', key_len)
|
||||||
cipher = libcrypto.EVP_get_cipherbyname(method)
|
cipher = libcrypto.EVP_get_cipherbyname(common.to_bytes(method))
|
||||||
if not cipher:
|
if not cipher:
|
||||||
cipher = load_cipher(method)
|
cipher = load_cipher(common.to_bytes(method))
|
||||||
if not cipher:
|
if not cipher:
|
||||||
print('cipher not avaiable, please upgrade openssl')
|
print('cipher not avaiable, please upgrade openssl')
|
||||||
return
|
return
|
||||||
|
@ -338,9 +338,9 @@ def run_aead_method(method, key_len=16):
|
||||||
def run_aead_method_chunk(method, key_len=16):
|
def run_aead_method_chunk(method, key_len=16):
|
||||||
|
|
||||||
print(method, ': chunk([size][tag][payload][tag]', key_len)
|
print(method, ': chunk([size][tag][payload][tag]', key_len)
|
||||||
cipher = libcrypto.EVP_get_cipherbyname(method)
|
cipher = libcrypto.EVP_get_cipherbyname(common.to_bytes(method))
|
||||||
if not cipher:
|
if not cipher:
|
||||||
cipher = load_cipher(method)
|
cipher = load_cipher(common.to_bytes(method))
|
||||||
if not cipher:
|
if not cipher:
|
||||||
print('cipher not avaiable, please upgrade openssl')
|
print('cipher not avaiable, please upgrade openssl')
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue