Code
This commit is contained in:
17
Code/venv/lib/python3.13/site-packages/aioquic/_crypto.pyi
Normal file
17
Code/venv/lib/python3.13/site-packages/aioquic/_crypto.pyi
Normal file
@ -0,0 +1,17 @@
|
||||
from typing import Tuple
|
||||
|
||||
class AEAD:
|
||||
def __init__(self, cipher_name: bytes, key: bytes, iv: bytes): ...
|
||||
def decrypt(
|
||||
self, data: bytes, associated_data: bytes, packet_number: int
|
||||
) -> bytes: ...
|
||||
def encrypt(
|
||||
self, data: bytes, associated_data: bytes, packet_number: int
|
||||
) -> bytes: ...
|
||||
|
||||
class CryptoError(ValueError): ...
|
||||
|
||||
class HeaderProtection:
|
||||
def __init__(self, cipher_name: bytes, key: bytes): ...
|
||||
def apply(self, plain_header: bytes, protected_payload: bytes) -> bytes: ...
|
||||
def remove(self, packet: bytes, encrypted_offset: int) -> Tuple[bytes, int]: ...
|
||||
Reference in New Issue
Block a user