-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
854 additions
and
520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# This file is dual licensed under the terms of the Apache License, Version | ||
# 2.0, and the BSD License. See the LICENSE file in the root of this repository | ||
# for complete details. | ||
|
||
import typing | ||
|
||
from cryptography.hazmat.primitives import ciphers | ||
from cryptography.hazmat.primitives.ciphers import modes | ||
|
||
@typing.overload | ||
def create_encryption_ctx( | ||
algorithm: ciphers.CipherAlgorithm, mode: modes.ModeWithAuthenticationTag | ||
) -> ciphers.AEADEncryptionContext: ... | ||
@typing.overload | ||
def create_encryption_ctx( | ||
algorithm: ciphers.CipherAlgorithm, mode: modes.Mode | ||
) -> ciphers.CipherContext: ... | ||
@typing.overload | ||
def create_decryption_ctx( | ||
algorithm: ciphers.CipherAlgorithm, mode: modes.ModeWithAuthenticationTag | ||
) -> ciphers.AEADDecryptionContext: ... | ||
@typing.overload | ||
def create_decryption_ctx( | ||
algorithm: ciphers.CipherAlgorithm, mode: modes.Mode | ||
) -> ciphers.CipherContext: ... | ||
def _advance( | ||
ctx: ciphers.AEADEncryptionContext | ciphers.AEADDecryptionContext, n: int | ||
) -> None: ... | ||
def _advance_aad( | ||
ctx: ciphers.AEADEncryptionContext | ciphers.AEADDecryptionContext, n: int | ||
) -> None: ... | ||
|
||
class CipherContext: ... | ||
class AEADEncryptionContext: ... | ||
class AEADDecryptionContext: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.