mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Faster crypto by using libssl (closes #199)
This commit is contained in:

committed by
Lonami

parent
afcddfd7c1
commit
ffb1cf483d
@@ -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
|
||||
|
Reference in New Issue
Block a user