id int64 0 190k | prompt stringlengths 21 13.4M | docstring stringlengths 1 12k ⌀ |
|---|---|---|
35,501 | from __future__ import absolute_import, division, print_function
import abc
import datetime
import os
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.asymmetric import (
dsa,
... | null |
35,502 | from __future__ import absolute_import, division, print_function
import abc
import datetime
import os
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.asymmetric import (
dsa,
... | Normalizes a datetime to a naive datetime in UTC. time -- datetime to normalize. Assumed to be in UTC if not timezone aware. |
35,503 | from __future__ import absolute_import, division, print_function
import abc
import datetime
import os
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.asymmetric import (
dsa,
... | null |
35,504 | from __future__ import absolute_import, division, print_function
import abc
import datetime
import os
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.asymmetric import (
dsa,
... | null |
35,505 | from __future__ import absolute_import, division, print_function
import abc
import datetime
import os
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.asymmetric import (
dsa,
... | null |
35,506 | from __future__ import absolute_import, division, print_function
import abc
import datetime
import os
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.asymmetric import (
dsa,
... | null |
35,507 | from __future__ import absolute_import, division, print_function
import abc
import datetime
import os
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.asymmetric import (
dsa,
... | null |
35,508 | from __future__ import absolute_import, division, print_function
import abc
import datetime
import os
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.asymmetric import (
dsa,
... | null |
35,509 | from __future__ import absolute_import, division, print_function
import abc
import datetime
import os
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.asymmetric import (
dsa,
... | null |
35,510 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import AlreadyFinalized
from thirdparty.cryptography.hazmat.bindings._padding import lib
def _byte_padding_check(block_size):
if not (0 <= block_s... | null |
35,511 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import AlreadyFinalized
from thirdparty.cryptography.hazmat.bindings._padding import lib
class AlreadyFinalized(Exception):
def _byte_padding_update(... | null |
35,512 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import AlreadyFinalized
from thirdparty.cryptography.hazmat.bindings._padding import lib
class AlreadyFinalized(Exception):
pass
def _byte_paddin... | null |
35,513 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import AlreadyFinalized
from thirdparty.cryptography.hazmat.bindings._padding import lib
class AlreadyFinalized(Exception):
pass
def _byte_unpadd... | null |
35,514 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import AlreadyFinalized
from thirdparty.cryptography.hazmat.bindings._padding import lib
class AlreadyFinalized(Exception):
pass
def _byte_unpadd... | null |
35,515 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
def _check_aes_key_length(self, algorithm):
if algorithm.key_size > 256 and algorithm.name == "AES":
raise ValueError(
"Only 128, 192, and 256 bit keys are allowed for... | null |
35,516 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.primitives.ciphers import (
BlockCipherAlgorithm,
CipherAlgorithm,
)
from thirdparty.cryptography.hazmat.primitives.ciphers.modes import ModeWithNonce
def _verify_key_s... | null |
35,517 | from __future__ import absolute_import, division, print_function
import struct
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.ciphers import Cipher
from thirdparty.cryptography.hazmat.primitives.ciphers.algorithms import AES
from thirdparty.cryptography.h... | null |
35,518 | from __future__ import absolute_import, division, print_function
import struct
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.ciphers import Cipher
from thirdparty.cryptography.hazmat.primitives.ciphers.algorithms import AES
from thirdparty.cryptography.h... | null |
35,519 | from __future__ import absolute_import, division, print_function
import struct
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.ciphers import Cipher
from thirdparty.cryptography.hazmat.primitives.ciphers.algorithms import AES
from thirdparty.cryptography.h... | null |
35,520 | from __future__ import absolute_import, division, print_function
import struct
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives.ciphers import Cipher
from thirdparty.cryptography.hazmat.primitives.ciphers.algorithms import AES
from thirdparty.cryptography.h... | null |
35,521 | from __future__ import absolute_import, division, print_function
import binascii
import os
import re
import struct
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cry... | Big integer. |
35,522 | from __future__ import absolute_import, division, print_function
import binascii
import os
import re
import struct
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cry... | Storage format for signed bigint. |
35,523 | from __future__ import absolute_import, division, print_function
import binascii
import os
import re
import struct
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cry... | Load private key from OpenSSH custom encoding. |
35,524 | from __future__ import absolute_import, division, print_function
import binascii
import os
import re
import struct
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cry... | Serialize private key with OpenSSH custom encoding. |
35,525 | from __future__ import absolute_import, division, print_function
import binascii
import os
import re
import struct
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cry... | Load public key from OpenSSH one-line format. |
35,526 | from __future__ import absolute_import, division, print_function
import binascii
import os
import re
import struct
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cry... | One-line public key format for OpenSSH |
35,527 | from __future__ import absolute_import, division, print_function
from enum import Enum
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives import hashes, serialization
from thirdparty.cryptography.hazmat.primitives.asym... | null |
35,528 | from __future__ import absolute_import, division, print_function
from enum import Enum
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives import hashes, serialization
from thirdparty.cryptography.hazmat.primitives.asym... | null |
35,529 | from __future__ import absolute_import, division, print_function
import abc
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
def _get_backend(backend):
if backend is None:
return default_backend()
else:
r... | null |
35,530 | from __future__ import absolute_import, division, print_function
import abc
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
def _get_backend(backend):
def load_pem_public_key(data, backend=None):
backend = _get_backend(bac... | null |
35,531 | from __future__ import absolute_import, division, print_function
import abc
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
def _get_backend(backend):
if backend is None:
return default_backend()
else:
r... | null |
35,532 | from __future__ import absolute_import, division, print_function
import abc
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
def _get_backend(backend):
if backend is None:
return default_backend()
else:
r... | null |
35,533 | from __future__ import absolute_import, division, print_function
import abc
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
def _get_backend(backend):
def load_der_public_key(data, backend=None):
backend = _get_backend(bac... | null |
35,534 | from __future__ import absolute_import, division, print_function
import abc
from enum import Enum
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
def _get_backend(backend):
if backend is None:
return default_backend()
else:
r... | null |
35,535 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives import serialization
from thirdparty.cryptography.hazmat.primitives.asymmetric import dsa, ec, rsa
de... | null |
35,536 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.primitives import serialization
from thirdparty.cryptography.hazmat.primitives.asymmetric import dsa, ec, rsa
de... | null |
35,537 | from __future__ import absolute_import, division, print_function
import struct
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
AlreadyFinalized,
InvalidKey,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends import _get_backend
from ... | null |
35,538 | from __future__ import absolute_import, division, print_function
import struct
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
AlreadyFinalized,
InvalidKey,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends import _get_backend
from ... | null |
35,539 | from __future__ import absolute_import, division, print_function
import struct
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
AlreadyFinalized,
InvalidKey,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends import _get_backend
from ... | null |
35,540 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
def _get_backend(backend):
if backend is None:
return default_backend()
else:
return backend
def gen... | null |
35,541 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
def _get_backend(backend):
def generate_private_key(key_size, backend=None):
backend = _get_backend(backend)
return ... | null |
35,542 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
def _check_dsa_parameters(parameters):
def _check_dsa_private_numbers(numbers):
parameters = numbers.public_numbers.param... | null |
35,543 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat._der import (
DERReader,
INTEGER,
SEQUENCE,
encode_der,
encode_der_integer,
)
from thirdparty.cryptography.hazmat.primitives import hashes
INTEGER = 0x02
SE... | null |
35,544 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat._der import (
DERReader,
INTEGER,
SEQUENCE,
encode_der,
encode_der_integer,
)
from thirdparty.cryptography.hazmat.primitives import hashes
INTEGER = 0x02
SE... | null |
35,545 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm, _Reasons
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.backends.int... | null |
35,546 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm, _Reasons
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.backends.int... | null |
35,547 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm, _Reasons
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.backends.int... | null |
35,548 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm, _Reasons
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.backends.int... | Compute the CRT (q ** -1) % p value from RSA primes p and q. |
35,549 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm, _Reasons
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.backends.int... | Compute the CRT private_exponent % (p - 1) value from the RSA private_exponent (d) and p. |
35,550 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm, _Reasons
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.backends.int... | Compute the CRT private_exponent % (q - 1) value from the RSA private_exponent (d) and q. |
35,551 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm, _Reasons
from thirdparty.cryptography.hazmat.backends import _get_backend
from thirdparty.cryptography.hazmat.backends.int... | Compute factors p and q from the private exponent d. We assume that n has no more than two factors. This function is adapted from code in PyCrypto. |
35,552 | from __future__ import absolute_import, division, print_function
import abc
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.backends import _get_backend
def _get_backend(backend):
if backend is None:
return default_backend()
else:
return backend
def gen... | null |
35,553 | from __future__ import absolute_import, division, print_function
import abc
import warnings
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat._oid import ObjectIdentifier
from thirdparty.cryptography.hazmat.backends import _get_backend
def _get_backend(backend):
if backend is... | null |
35,554 | from __future__ import absolute_import, division, print_function
import abc
import warnings
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat._oid import ObjectIdentifier
from thirdparty.cryptography.hazmat.backends import _get_backend
class EllipticCurve(object):
def name(sel... | null |
35,555 | from __future__ import absolute_import, division, print_function
import abc
import warnings
import six
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat._oid import ObjectIdentifier
from thirdparty.cryptography.hazmat.backends import _get_backend
_OID_TO_CURVE = {
EllipticCurveOID.SECP19... | null |
35,556 | from __future__ import absolute_import, division, print_function
import base64
from six.moves.urllib.parse import quote, urlencode
def _generate_uri(hotp, type_name, account_name, issuer, extra_parameters):
parameters = [
("digits", hotp._length),
("secret", base64.b32encode(hotp._key)),
("... | null |
35,557 | from __future__ import absolute_import, division, print_function
import collections
import os
import threading
import types
import warnings
from thirdparty import cryptography
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import InternalError
from thirdparty.cryptography.hazmat.bindi... | null |
35,558 | from __future__ import absolute_import, division, print_function
import collections
import os
import threading
import types
import warnings
from thirdparty import cryptography
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import InternalError
from thirdparty.cryptography.hazmat.bindi... | null |
35,559 | from __future__ import absolute_import, division, print_function
import collections
import os
import threading
import types
import warnings
from thirdparty import cryptography
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import InternalError
from thirdparty.cryptography.hazmat.bindi... | null |
35,560 | from __future__ import absolute_import, division, print_function
import collections
import os
import threading
import types
import warnings
from thirdparty import cryptography
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import InternalError
from thirdparty.cryptography.hazmat.bindi... | null |
35,561 | from __future__ import absolute_import, division, print_function
import collections
import os
import threading
import types
import warnings
from thirdparty import cryptography
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import InternalError
from thirdparty.cryptography.hazmat.bindi... | null |
35,562 | from __future__ import absolute_import, division, print_function
def cryptography_has_ec2m():
return [
"EC_POINT_set_affine_coordinates_GF2m",
"EC_POINT_get_affine_coordinates_GF2m",
"EC_POINT_set_compressed_coordinates_GF2m",
] | null |
35,563 | from __future__ import absolute_import, division, print_function
def cryptography_has_rsa_oaep_md():
return [
"EVP_PKEY_CTX_set_rsa_oaep_md",
] | null |
35,564 | from __future__ import absolute_import, division, print_function
def cryptography_has_rsa_oaep_label():
return [
"EVP_PKEY_CTX_set0_rsa_oaep_label",
] | null |
35,565 | from __future__ import absolute_import, division, print_function
def cryptography_has_ssl3_method():
return [
"SSLv3_method",
"SSLv3_client_method",
"SSLv3_server_method",
] | null |
35,566 | from __future__ import absolute_import, division, print_function
def cryptography_has_102_verification():
return [
"X509_V_ERR_SUITE_B_INVALID_VERSION",
"X509_V_ERR_SUITE_B_INVALID_ALGORITHM",
"X509_V_ERR_SUITE_B_INVALID_CURVE",
"X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM",
... | null |
35,567 | from __future__ import absolute_import, division, print_function
def cryptography_has_110_verification_params():
return ["X509_CHECK_FLAG_NEVER_CHECK_SUBJECT"] | null |
35,568 | from __future__ import absolute_import, division, print_function
def cryptography_has_set_cert_cb():
return [
"SSL_CTX_set_cert_cb",
"SSL_set_cert_cb",
] | null |
35,569 | from __future__ import absolute_import, division, print_function
def cryptography_has_ssl_st():
return [
"SSL_ST_BEFORE",
"SSL_ST_OK",
"SSL_ST_INIT",
"SSL_ST_RENEGOTIATE",
] | null |
35,570 | from __future__ import absolute_import, division, print_function
def cryptography_has_tls_st():
return [
"TLS_ST_BEFORE",
"TLS_ST_OK",
] | null |
35,571 | from __future__ import absolute_import, division, print_function
def cryptography_has_locking_callbacks():
return [
"Cryptography_setup_ssl_threads",
] | null |
35,572 | from __future__ import absolute_import, division, print_function
def cryptography_has_scrypt():
return [
"EVP_PBE_scrypt",
] | null |
35,573 | from __future__ import absolute_import, division, print_function
def cryptography_has_evp_pkey_dhx():
return [
"EVP_PKEY_DHX",
] | null |
35,574 | from __future__ import absolute_import, division, print_function
def cryptography_has_mem_functions():
return [
"Cryptography_CRYPTO_set_mem_functions",
] | null |
35,575 | from __future__ import absolute_import, division, print_function
def cryptography_has_sct():
return [
"SCT_get_version",
"SCT_get_log_entry_type",
"SCT_get0_log_id",
"SCT_get0_signature",
"SCT_get_timestamp",
"SCT_set_source",
"sk_SCT_num",
"sk_SCT_va... | null |
35,576 | from __future__ import absolute_import, division, print_function
def cryptography_has_x509_store_ctx_get_issuer():
return [
"X509_STORE_get_get_issuer",
"X509_STORE_set_get_issuer",
] | null |
35,577 | from __future__ import absolute_import, division, print_function
def cryptography_has_x25519():
return [
"EVP_PKEY_X25519",
"NID_X25519",
] | null |
35,578 | from __future__ import absolute_import, division, print_function
def cryptography_has_x448():
return [
"EVP_PKEY_X448",
"NID_X448",
] | null |
35,579 | from __future__ import absolute_import, division, print_function
def cryptography_has_ed448():
return [
"EVP_PKEY_ED448",
"NID_ED448",
] | null |
35,580 | from __future__ import absolute_import, division, print_function
def cryptography_has_ed25519():
return [
"NID_ED25519",
"EVP_PKEY_ED25519",
] | null |
35,581 | from __future__ import absolute_import, division, print_function
def cryptography_has_poly1305():
return [
"NID_poly1305",
"EVP_PKEY_POLY1305",
] | null |
35,582 | from __future__ import absolute_import, division, print_function
def cryptography_has_oneshot_evp_digest_sign_verify():
return [
"EVP_DigestSign",
"EVP_DigestVerify",
] | null |
35,583 | from __future__ import absolute_import, division, print_function
def cryptography_has_evp_digestfinal_xof():
return [
"EVP_DigestFinalXOF",
] | null |
35,584 | from __future__ import absolute_import, division, print_function
def cryptography_has_evp_pkey_get_set_tls_encodedpoint():
return [
"EVP_PKEY_get1_tls_encodedpoint",
"EVP_PKEY_set1_tls_encodedpoint",
] | null |
35,585 | from __future__ import absolute_import, division, print_function
def cryptography_has_fips():
return [
"FIPS_mode_set",
"FIPS_mode",
] | null |
35,586 | from __future__ import absolute_import, division, print_function
def cryptography_has_ssl_sigalgs():
return [
"SSL_CTX_set1_sigalgs_list",
"SSL_get_sigalgs",
] | null |
35,587 | from __future__ import absolute_import, division, print_function
def cryptography_has_psk():
return [
"SSL_CTX_use_psk_identity_hint",
"SSL_CTX_set_psk_server_callback",
"SSL_CTX_set_psk_client_callback",
] | null |
35,588 | from __future__ import absolute_import, division, print_function
def cryptography_has_custom_ext():
return [
"SSL_CTX_add_client_custom_ext",
"SSL_CTX_add_server_custom_ext",
"SSL_extension_supported",
] | null |
35,589 | from __future__ import absolute_import, division, print_function
def cryptography_has_openssl_cleanup():
return [
"OPENSSL_cleanup",
] | null |
35,590 | from __future__ import absolute_import, division, print_function
def cryptography_has_cipher_details():
return [
"SSL_CIPHER_is_aead",
"SSL_CIPHER_get_cipher_nid",
"SSL_CIPHER_get_digest_nid",
"SSL_CIPHER_get_kx_nid",
"SSL_CIPHER_get_auth_nid",
] | null |
35,591 | from __future__ import absolute_import, division, print_function
def cryptography_has_tlsv13():
return [
"SSL_OP_NO_TLSv1_3",
"SSL_VERIFY_POST_HANDSHAKE",
"SSL_CTX_set_ciphersuites",
"SSL_verify_client_post_handshake",
"SSL_CTX_set_post_handshake_auth",
"SSL_set_post... | null |
35,592 | from __future__ import absolute_import, division, print_function
def cryptography_has_keylog():
return [
"SSL_CTX_set_keylog_callback",
"SSL_CTX_get_keylog_callback",
] | null |
35,593 | from __future__ import absolute_import, division, print_function
def cryptography_has_raw_key():
return [
"EVP_PKEY_new_raw_private_key",
"EVP_PKEY_new_raw_public_key",
"EVP_PKEY_get_raw_private_key",
"EVP_PKEY_get_raw_public_key",
] | null |
35,594 | from __future__ import absolute_import, division, print_function
def cryptography_has_engine():
return [
"ENGINE_by_id",
"ENGINE_init",
"ENGINE_finish",
"ENGINE_get_default_RAND",
"ENGINE_set_default_RAND",
"ENGINE_unregister_RAND",
"ENGINE_ctrl_cmd",
... | null |
35,595 | from __future__ import absolute_import, division, print_function
def cryptography_has_verified_chain():
return [
"SSL_get0_verified_chain",
] | null |
35,596 | from __future__ import absolute_import, division, print_function
def cryptography_has_srtp():
return [
"SSL_CTX_set_tlsext_use_srtp",
"SSL_set_tlsext_use_srtp",
"SSL_get_selected_srtp_profile",
] | null |
35,597 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import InvalidSignature
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algorithm,
_check_not_prehashed,
_warn_sign_ver... | null |
35,598 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import InvalidSignature
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algorithm,
_check_not_prehashed,
_warn_sign_ver... | null |
35,599 | from __future__ import absolute_import, division, print_function
import warnings
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.primitives import hashes
from thirdparty.cryptography.hazmat.primitives.asymmetric.utils import Prehashed
def _evp_pkey_derive(backend, evp_pkey, peer_public_ke... | null |
35,600 | from __future__ import absolute_import, division, print_function
import warnings
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.primitives import hashes
from thirdparty.cryptography.hazmat.primitives.asymmetric.utils import Prehashed
class Prehashed(object):
def __init__(self, algori... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.