403Webshell
Server IP : 85.143.209.190  /  Your IP : 216.73.217.12
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux 49083.simplecloud.ru 5.4.0-205-generic #225-Ubuntu SMP Fri Jan 10 22:23:35 UTC 2025 x86_64
User : vozdvizhenka37 ( 1083)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/certbot/5781/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/certbot/5781/lib/python3.12/site-packages/cryptography/hazmat/bindings/_rust/openssl/hpke.pyi
# 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.

from cryptography.hazmat.primitives.asymmetric import ec, mlkem, x25519
from cryptography.utils import Buffer

class KEM:
    X25519: KEM
    P256: KEM
    P384: KEM
    P521: KEM
    MLKEM768: KEM
    MLKEM1024: KEM
    MLKEM768_X25519: KEM
    MLKEM1024_P384: KEM

class KDF:
    HKDF_SHA256: KDF
    HKDF_SHA384: KDF
    HKDF_SHA512: KDF
    SHAKE128: KDF
    SHAKE256: KDF

class AEAD:
    AES_128_GCM: AEAD
    AES_256_GCM: AEAD
    CHACHA20_POLY1305: AEAD

class MLKEM768X25519PrivateKey:
    def __init__(
        self,
        mlkem_key: mlkem.MLKEM768PrivateKey,
        x25519_key: x25519.X25519PrivateKey,
    ) -> None: ...
    def public_key(self) -> MLKEM768X25519PublicKey: ...

class MLKEM768X25519PublicKey:
    def __init__(
        self,
        mlkem_key: mlkem.MLKEM768PublicKey,
        x25519_key: x25519.X25519PublicKey,
    ) -> None: ...

class MLKEM1024P384PrivateKey:
    def __init__(
        self,
        mlkem_key: mlkem.MLKEM1024PrivateKey,
        p384_key: ec.EllipticCurvePrivateKey,
    ) -> None: ...
    def public_key(self) -> MLKEM1024P384PublicKey: ...

class MLKEM1024P384PublicKey:
    def __init__(
        self,
        mlkem_key: mlkem.MLKEM1024PublicKey,
        p384_key: ec.EllipticCurvePublicKey,
    ) -> None: ...

class Suite:
    def __init__(self, kem: KEM, kdf: KDF, aead: AEAD) -> None: ...
    def encrypt(
        self,
        plaintext: Buffer,
        public_key: x25519.X25519PublicKey
        | ec.EllipticCurvePublicKey
        | mlkem.MLKEM768PublicKey
        | mlkem.MLKEM1024PublicKey
        | MLKEM768X25519PublicKey
        | MLKEM1024P384PublicKey,
        info: Buffer | None = None,
    ) -> bytes: ...
    def decrypt(
        self,
        ciphertext: Buffer,
        private_key: x25519.X25519PrivateKey
        | ec.EllipticCurvePrivateKey
        | mlkem.MLKEM768PrivateKey
        | mlkem.MLKEM1024PrivateKey
        | MLKEM768X25519PrivateKey
        | MLKEM1024P384PrivateKey,
        info: Buffer | None = None,
    ) -> bytes: ...

def _encrypt_with_aad(
    suite: Suite,
    plaintext: Buffer,
    public_key: x25519.X25519PublicKey
    | ec.EllipticCurvePublicKey
    | mlkem.MLKEM768PublicKey
    | mlkem.MLKEM1024PublicKey
    | MLKEM768X25519PublicKey
    | MLKEM1024P384PublicKey,
    info: Buffer | None = None,
    aad: Buffer | None = None,
) -> bytes: ...
def _decrypt_with_aad(
    suite: Suite,
    ciphertext: Buffer,
    private_key: x25519.X25519PrivateKey
    | ec.EllipticCurvePrivateKey
    | mlkem.MLKEM768PrivateKey
    | mlkem.MLKEM1024PrivateKey
    | MLKEM768X25519PrivateKey
    | MLKEM1024P384PrivateKey,
    info: Buffer | None = None,
    aad: Buffer | None = None,
) -> bytes: ...

Youez - 2016 - github.com/yon3zu
LinuXploit