Home
last modified time | relevance | path

Searched refs:_lib (Results 1 – 25 of 61) sorted by relevance

123

/external/python/pyopenssl/src/OpenSSL/
Dcrypto.py19 lib as _lib, unknown
68 FILETYPE_PEM = _lib.SSL_FILETYPE_PEM
69 FILETYPE_ASN1 = _lib.SSL_FILETYPE_ASN1
74 TYPE_RSA = _lib.EVP_PKEY_RSA
75 TYPE_DSA = _lib.EVP_PKEY_DSA
76 TYPE_DH = _lib.EVP_PKEY_DH
77 TYPE_EC = _lib.EVP_PKEY_EC
122 bio = _lib.BIO_new(_lib.BIO_s_mem())
123 free = _lib.BIO_free
126 bio = _lib.BIO_new_mem_buf(data, len(buffer))
[all …]
DSSL.py16 lib as _lib, unknown
127 OPENSSL_VERSION_NUMBER = _lib.OPENSSL_VERSION_NUMBER
128 SSLEAY_VERSION = _lib.SSLEAY_VERSION
129 SSLEAY_CFLAGS = _lib.SSLEAY_CFLAGS
130 SSLEAY_PLATFORM = _lib.SSLEAY_PLATFORM
131 SSLEAY_DIR = _lib.SSLEAY_DIR
132 SSLEAY_BUILT_ON = _lib.SSLEAY_BUILT_ON
134 SENT_SHUTDOWN = _lib.SSL_SENT_SHUTDOWN
135 RECEIVED_SHUTDOWN = _lib.SSL_RECEIVED_SHUTDOWN
144 OP_NO_SSLv2 = _lib.SSL_OP_NO_SSLv2
[all …]
Drand.py5 from OpenSSL._util import lib as _lib unknown
31 _lib.RAND_add(buffer, len(buffer), entropy)
40 return _lib.RAND_status()
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dbackend.py109 self._lib = self._binding.lib
114 self._dh_types = [self._lib.EVP_PKEY_DH]
115 if self._lib.Cryptography_HAS_EVP_PKEY_DHX:
116 self._dh_types.append(self._lib.EVP_PKEY_DHX)
119 return binding._openssl_assert(self._lib, ok)
123 e = self._lib.ENGINE_get_default_RAND()
125 self._lib.ENGINE_unregister_RAND(e)
127 self._lib.RAND_cleanup()
129 res = self._lib.ENGINE_finish(e)
136 e = self._lib.ENGINE_by_id(self._binding._osrandom_engine_id)
[all …]
Dencode_asn1.py35 i = backend._ffi.gc(i, backend._lib.BN_free)
38 i = backend._lib.BN_to_ASN1_INTEGER(i, backend._ffi.NULL)
45 i = backend._ffi.gc(i, backend._lib.ASN1_INTEGER_free)
53 s = backend._lib.ASN1_OCTET_STRING_new()
54 res = backend._lib.ASN1_OCTET_STRING_set(s, data, len(data))
65 s = backend._lib.ASN1_UTF8STRING_new()
66 res = backend._lib.ASN1_STRING_set(
75 s = backend._ffi.gc(s, backend._lib.ASN1_OCTET_STRING_free)
87 subject = backend._lib.X509_NAME_new()
94 name_entry, backend._lib.X509_NAME_ENTRY_free
[all …]
Ddecode_asn1.py42 res = backend._lib.OBJ_obj2txt(buf, buf_len, obj, 1)
46 res = backend._lib.OBJ_obj2txt(buf, buf_len, obj, 1)
52 obj = backend._lib.X509_NAME_ENTRY_get_object(x509_name_entry)
54 data = backend._lib.X509_NAME_ENTRY_get_data(x509_name_entry)
64 count = backend._lib.X509_NAME_entry_count(x509_name)
68 entry = backend._lib.X509_NAME_get_entry(x509_name, x)
70 set_id = backend._lib.Cryptography_X509_NAME_ENTRY_set(entry)
82 num = backend._lib.sk_GENERAL_NAME_num(gns)
85 gn = backend._lib.sk_GENERAL_NAME_value(gns, i)
93 if gn.type == backend._lib.GEN_DNS:
[all …]
Drsa.py43 padding_enum = backend._lib.RSA_PKCS1_PADDING
45 padding_enum = backend._lib.RSA_PKCS1_OAEP_PADDING
73 init = backend._lib.EVP_PKEY_encrypt_init
74 crypt = backend._lib.EVP_PKEY_encrypt
76 init = backend._lib.EVP_PKEY_decrypt_init
77 crypt = backend._lib.EVP_PKEY_decrypt
79 pkey_ctx = backend._lib.EVP_PKEY_CTX_new(
83 pkey_ctx = backend._ffi.gc(pkey_ctx, backend._lib.EVP_PKEY_CTX_free)
86 res = backend._lib.EVP_PKEY_CTX_set_rsa_padding(
89 buf_size = backend._lib.EVP_PKEY_size(key._evp_pkey)
[all …]
Dx509.py39 res = self._backend._lib.X509_cmp(self._x509, other._x509)
55 version = self._backend._lib.X509_get_version(self._x509)
76 asn1_int = self._backend._lib.X509_get_serialNumber(self._x509)
81 pkey = self._backend._lib.X509_get_pubkey(self._x509)
87 pkey = self._backend._ffi.gc(pkey, self._backend._lib.EVP_PKEY_free)
93 asn1_time = self._backend._lib.X509_get_notBefore(self._x509)
98 asn1_time = self._backend._lib.X509_get_notAfter(self._x509)
103 issuer = self._backend._lib.X509_get_issuer_name(self._x509)
109 subject = self._backend._lib.X509_get_subject_name(self._x509)
126 self._backend._lib.X509_get0_signature(
[all …]
Dciphers.py33 ctx = self._backend._lib.EVP_CIPHER_CTX_new()
35 ctx, self._backend._lib.EVP_CIPHER_CTX_free
73 res = self._backend._lib.EVP_CipherInit_ex(ctx, evp_cipher,
80 res = self._backend._lib.EVP_CIPHER_CTX_set_key_length(
85 res = self._backend._lib.EVP_CIPHER_CTX_ctrl(
86 ctx, self._backend._lib.EVP_CTRL_AEAD_SET_IVLEN,
91 res = self._backend._lib.EVP_CIPHER_CTX_ctrl(
92 ctx, self._backend._lib.EVP_CTRL_AEAD_SET_TAG,
99 self._backend._lib.CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 and
100 not self._backend._lib.CRYPTOGRAPHY_IS_LIBRESSL
[all …]
Daead.py28 evp_cipher = backend._lib.EVP_get_cipherbyname(cipher_name)
30 ctx = backend._lib.EVP_CIPHER_CTX_new()
31 ctx = backend._ffi.gc(ctx, backend._lib.EVP_CIPHER_CTX_free)
32 res = backend._lib.EVP_CipherInit_ex(
40 res = backend._lib.EVP_CIPHER_CTX_set_key_length(ctx, len(key))
42 res = backend._lib.EVP_CIPHER_CTX_ctrl(
43 ctx, backend._lib.EVP_CTRL_AEAD_SET_IVLEN, len(nonce),
48 res = backend._lib.EVP_CIPHER_CTX_ctrl(
49 ctx, backend._lib.EVP_CTRL_AEAD_SET_TAG, len(tag), tag
53 res = backend._lib.EVP_CIPHER_CTX_ctrl(
[all …]
Dec.py29 group = backend._lib.EC_KEY_get0_group(ec_key)
32 nid = backend._lib.EC_GROUP_get_curve_name(group)
35 if nid == backend._lib.NID_undef:
41 curve_name = backend._lib.OBJ_nid2sn(nid)
55 backend._lib.EC_KEY_set_asn1_flag(
56 ec_cdata, backend._lib.OPENSSL_EC_NAMED_CURVE
71 max_size = backend._lib.ECDSA_size(private_key._ec_key)
76 res = backend._lib.ECDSA_sign(
84 res = backend._lib.ECDSA_verify(
167 group = self._backend._lib.EC_KEY_get0_group(self._ec_key)
[all …]
Docsp.py41 res = backend._lib.OCSP_id_get0_info(
52 res = backend._lib.OCSP_id_get0_info(
63 res = backend._lib.OCSP_id_get0_info(
74 res = backend._lib.OCSP_id_get0_info(
94 status = self._backend._lib.OCSP_response_status(self._ocsp_response)
98 basic = self._backend._lib.OCSP_response_get1_basic(
103 basic, self._backend._lib.OCSP_BASICRESP_free
106 self._backend._lib.OCSP_resp_count(self._basic) == 1
108 self._single = self._backend._lib.OCSP_resp_get0(self._basic, 0)
112 self._cert_id = self._backend._lib.OCSP_SINGLERESP_get0_id(
[all …]
Dhashes.py21 ctx = self._backend._lib.Cryptography_EVP_MD_CTX_new()
23 ctx, self._backend._lib.Cryptography_EVP_MD_CTX_free
32 res = self._backend._lib.EVP_DigestInit_ex(ctx, evp_md,
41 copied_ctx = self._backend._lib.Cryptography_EVP_MD_CTX_new()
43 copied_ctx, self._backend._lib.Cryptography_EVP_MD_CTX_free
45 res = self._backend._lib.EVP_MD_CTX_copy_ex(copied_ctx, self._ctx)
51 res = self._backend._lib.EVP_DigestUpdate(
62 self._backend._lib.EVP_MAX_MD_SIZE)
64 res = self._backend._lib.EVP_DigestFinal_ex(self._ctx, buf, outlen)
74 res = self._backend._lib.EVP_DigestFinalXOF(
Ddh.py14 lib = backend._lib
46 self._backend._lib.DH_get0_pqg(self._dh_cdata, p, q, g)
67 if not self._backend._lib.Cryptography_HAS_EVP_PKEY_DHX:
69 self._backend._lib.DH_get0_pqg(self._dh_cdata,
86 lib = backend._lib
99 backend._lib.DH_get0_pqg(dh_cdata, p,
103 return backend._lib.BN_num_bits(p[0])
112 self._key_size_bytes = self._backend._lib.DH_size(dh_cdata)
122 self._backend._lib.DH_get0_pqg(self._dh_cdata, p, q, g)
131 self._backend._lib.DH_get0_key(self._dh_cdata, pub_key, priv_key)
[all …]
Ddsa.py20 sig_buf_len = backend._lib.DSA_size(private_key._dsa_cdata)
26 res = backend._lib.DSA_sign(
38 res = backend._lib.DSA_verify(
94 self._backend._lib.DSA_get0_pqg(self._dsa_cdata, p, q, g)
116 self._backend._lib.DSA_get0_pqg(
120 self._key_size = self._backend._lib.BN_num_bits(p[0])
135 self._backend._lib.DSA_get0_pqg(self._dsa_cdata, p, q, g)
139 self._backend._lib.DSA_get0_key(self._dsa_cdata, pub_key, priv_key)
155 dsa_cdata = self._backend._lib.DSAparams_dup(self._dsa_cdata)
158 dsa_cdata, self._backend._lib.DSA_free
[all …]
Dhmac.py23 ctx = self._backend._lib.Cryptography_HMAC_CTX_new()
26 ctx, self._backend._lib.Cryptography_HMAC_CTX_free
36 res = self._backend._lib.HMAC_Init_ex(
47 copied_ctx = self._backend._lib.Cryptography_HMAC_CTX_new()
50 copied_ctx, self._backend._lib.Cryptography_HMAC_CTX_free
52 res = self._backend._lib.HMAC_CTX_copy(copied_ctx, self._ctx)
60 res = self._backend._lib.HMAC_Update(self._ctx, data_ptr, len(data))
65 self._backend._lib.EVP_MAX_MD_SIZE)
67 res = self._backend._lib.HMAC_Final(self._ctx, buf, outlen)
Dcmac.py34 ctx = self._backend._lib.CMAC_CTX_new()
37 ctx = self._backend._ffi.gc(ctx, self._backend._lib.CMAC_CTX_free)
40 res = self._backend._lib.CMAC_Init(
51 res = self._backend._lib.CMAC_Update(self._ctx, data, len(data))
57 res = self._backend._lib.CMAC_Final(
67 copied_ctx = self._backend._lib.CMAC_CTX_new()
69 copied_ctx, self._backend._lib.CMAC_CTX_free
71 res = self._backend._lib.CMAC_CTX_copy(
Dutils.py15 ctx = backend._lib.EVP_PKEY_CTX_new(evp_pkey, backend._ffi.NULL)
17 ctx = backend._ffi.gc(ctx, backend._lib.EVP_PKEY_CTX_free)
18 res = backend._lib.EVP_PKEY_derive_init(ctx)
20 res = backend._lib.EVP_PKEY_derive_set_peer(
25 res = backend._lib.EVP_PKEY_derive(ctx, backend._ffi.NULL, keylen)
29 res = backend._lib.EVP_PKEY_derive(ctx, buf, keylen)
Dx25519.py68 res = self._backend._lib.EVP_PKEY_get1_tls_encodedpoint(
74 ucharpp[0], self._backend._lib.OPENSSL_free
87 res = self._backend._lib.i2d_PUBKEY_bio(bio, self._evp_pkey)
89 evp_pkey = self._backend._lib.d2i_PUBKEY_bio(
94 evp_pkey, self._backend._lib.EVP_PKEY_free
141 res = self._backend._lib.i2d_PKCS8PrivateKey_bio(
/external/scapy/scapy/modules/
Dwinpcapy.py32 _lib=CDLL("wpcap.dll") variable
38 _lib=CDLL(_lib_name) variable
258 pcap_open_live = _lib.pcap_open_live
264 pcap_open_dead = _lib.pcap_open_dead
270 pcap_open_offline = _lib.pcap_open_offline
276 pcap_dump_open = _lib.pcap_dump_open
282 pcap_setnonblock = _lib.pcap_setnonblock
288 pcap_getnonblock = _lib.pcap_getnonblock
294 pcap_findalldevs = _lib.pcap_findalldevs
300 pcap_freealldevs = _lib.pcap_freealldevs
[all …]
/external/libiio/src/bindings/python/
Diio.py61 _lib = _cdll('libiio.dll' if 'Windows' in _system() else 'libiio.so.0', variable
64 _get_backends_count = _lib.iio_get_backends_count
67 _get_backend = _lib.iio_get_backend
72 _create_scan_context = _lib.iio_create_scan_context
77 _destroy_scan_context = _lib.iio_scan_context_destroy
80 _get_context_info_list = _lib.iio_scan_context_get_info_list
85 _context_info_list_free = _lib.iio_context_info_list_free
88 _context_info_get_description = _lib.iio_context_info_get_description
92 _context_info_get_uri = _lib.iio_context_info_get_uri
96 _new_local = _lib.iio_create_local_context
[all …]
/external/python/cryptography/tests/hazmat/backends/
Dtest_openssl.py107 backend._lib.ERR_put_error(backend._lib.ERR_LIB_EVP, 0, 0,
110 assert backend._lib.ERR_peek_error() != 0
114 assert backend._lib.ERR_peek_error() == 0
118 meth = backend._lib.SSLv23_method()
119 ctx = backend._lib.SSL_CTX_new(meth)
121 backend._lib.SSL_CTX_free(ctx)
124 cipher = backend._lib.EVP_get_cipherbyname(b"aes-256-cbc")
129 backend._lib.ERR_error_string_n(101183626, buf, len(buf))
136 backend._lib.ERR_put_error(0, 0, 1,
153 bn = backend._ffi.gc(bn, backend._lib.BN_clear_free)
[all …]
/external/bcc/cmake/
Dclang_libs.cmake48 foreach(_lib ${clang_libs})
49 get_filename_component(_lib ${_lib} NAME)
50 set(_exclude_flags "${_exclude_flags} -Wl,--exclude-libs=${_lib}")
51 endforeach(_lib)
55 foreach(_lib ${llvm_libs})
56 get_filename_component(_lib ${_lib} NAME)
57 set(_exclude_flags "${_exclude_flags} -Wl,--exclude-libs=lib${_lib}.a")
58 endforeach(_lib)
/external/libcap-ng/libcap-ng-0.7/
Dlibcap-ng.spec55 %configure --libdir=/%{_lib}
63 rm -f $RPM_BUILD_ROOT/%{_lib}/%{name}.so
65 VLIBNAME=$(ls $RPM_BUILD_ROOT/%{_lib}/%{name}.so.*.*.*)
67 ln -s ../../%{_lib}/$LIBNAME $RPM_BUILD_ROOT%{_libdir}/%{name}.so
70 mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
73 rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.la
74 rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.a
92 %attr(0755,root,root) /%{_lib}/libcap-ng.so.*
/external/openssh/regress/
Dagent-pkcs11.sh7 for _lib in "$@" ; do
8 if test -f "$_lib" ; then
9 verbose "Using token library $_lib"
10 TEST_SSH_PKCS11="$_lib"

123