File tree Expand file tree Collapse file tree 6 files changed +226
-379
lines changed Expand file tree Collapse file tree 6 files changed +226
-379
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
12
12
from cryptography import utils , x509
13
13
from cryptography .exceptions import UnsupportedAlgorithm
14
- from cryptography .hazmat .backends .openssl import aead
15
14
from cryptography .hazmat .backends .openssl .ciphers import _CipherContext
16
15
from cryptography .hazmat .bindings ._rust import openssl as rust_openssl
17
16
from cryptography .hazmat .bindings .openssl import binding
@@ -561,9 +560,6 @@ def ed448_supported(self) -> bool:
561
560
and not self ._lib .CRYPTOGRAPHY_IS_BORINGSSL
562
561
)
563
562
564
- def aead_cipher_supported (self , cipher ) -> bool :
565
- return aead ._aead_cipher_supported (self , cipher )
566
-
567
563
def _zero_data (self , data , length : int ) -> None :
568
564
# We clear things this way because at the moment we're not
569
565
# sure of a better way that can guarantee it overwrites the
Original file line number Diff line number Diff line change @@ -36,6 +36,23 @@ class ChaCha20Poly1305:
36
36
associated_data : bytes | None ,
37
37
) -> bytes : ...
38
38
39
+ class AESCCM :
40
+ def __init__ (self , key : bytes , tag_length : int = 16 ) -> None : ...
41
+ @staticmethod
42
+ def generate_key (key_size : int ) -> bytes : ...
43
+ def encrypt (
44
+ self ,
45
+ nonce : bytes ,
46
+ data : bytes ,
47
+ associated_data : bytes | None ,
48
+ ) -> bytes : ...
49
+ def decrypt (
50
+ self ,
51
+ nonce : bytes ,
52
+ data : bytes ,
53
+ associated_data : bytes | None ,
54
+ ) -> bytes : ...
55
+
39
56
class AESSIV :
40
57
def __init__ (self , key : bytes ) -> None : ...
41
58
@staticmethod
You can’t perform that action at this time.
0 commit comments