Faster crypto by using libssl (closes #199)

This commit is contained in:
Christian Stemmle
2017-08-20 01:21:11 +02:00
committed by Lonami
parent afcddfd7c1
commit ffb1cf483d
2 changed files with 90 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
import os
import pyaes
from . import libssl
class AES:
@staticmethod
@@ -71,3 +71,7 @@ class AES:
cipher_text.extend(cipher_text_block)
return bytes(cipher_text)
# use libssl if available
if libssl.libssl:
AES = libssl.AES