Searched refs:_backend (Results 1 – 25 of 37) sorted by relevance
12
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/ |
D | x509.py | 29 self._backend = backend 39 res = self._backend._lib.X509_cmp(self._x509, other._x509) 49 h = hashes.Hash(algorithm, self._backend) 55 version = self._backend._lib.X509_get_version(self._x509) 76 asn1_int = self._backend._lib.X509_get_serialNumber(self._x509) 77 self._backend.openssl_assert(asn1_int != self._backend._ffi.NULL) 78 return _asn1_integer_to_int(self._backend, asn1_int) 81 pkey = self._backend._lib.X509_get_pubkey(self._x509) 82 if pkey == self._backend._ffi.NULL: 84 self._backend._consume_errors() [all …]
|
D | dsa.py | 50 self._backend = backend 55 self._hash_ctx = hashes.Hash(self._algorithm, self._backend) 64 self._backend, self._public_key, self._signature, data_to_verify 71 self._backend = backend 74 self._hash_ctx = hashes.Hash(self._algorithm, self._backend) 81 return _dsa_sig_sign(self._backend, self._private_key, data_to_sign) 87 self._backend = backend 91 p = self._backend._ffi.new("BIGNUM **") 92 q = self._backend._ffi.new("BIGNUM **") 93 g = self._backend._ffi.new("BIGNUM **") [all …]
|
D | dh.py | 39 self._backend = backend 43 p = self._backend._ffi.new("BIGNUM **") 44 g = self._backend._ffi.new("BIGNUM **") 45 q = self._backend._ffi.new("BIGNUM **") 46 self._backend._lib.DH_get0_pqg(self._dh_cdata, p, q, g) 47 self._backend.openssl_assert(p[0] != self._backend._ffi.NULL) 48 self._backend.openssl_assert(g[0] != self._backend._ffi.NULL) 49 if q[0] == self._backend._ffi.NULL: 52 q_val = self._backend._bn_to_int(q[0]) 54 p=self._backend._bn_to_int(p[0]), [all …]
|
D | ocsp.py | 92 self._backend = backend 94 status = self._backend._lib.OCSP_response_status(self._ocsp_response) 95 self._backend.openssl_assert(status in _RESPONSE_STATUS_TO_ENUM) 98 basic = self._backend._lib.OCSP_response_get1_basic( 101 self._backend.openssl_assert(basic != self._backend._ffi.NULL) 102 self._basic = self._backend._ffi.gc( 103 basic, self._backend._lib.OCSP_BASICRESP_free 105 self._backend.openssl_assert( 106 self._backend._lib.OCSP_resp_count(self._basic) == 1 108 self._single = self._backend._lib.OCSP_resp_get0(self._basic, 0) [all …]
|
D | ciphers.py | 22 self._backend = backend 33 ctx = self._backend._lib.EVP_CIPHER_CTX_new() 34 ctx = self._backend._ffi.gc( 35 ctx, self._backend._lib.EVP_CIPHER_CTX_free 38 registry = self._backend._cipher_registry 49 evp_cipher = adapter(self._backend, cipher, mode) 50 if evp_cipher == self._backend._ffi.NULL: 57 ).format(self._backend.openssl_version_text()) 61 iv_nonce = self._backend._ffi.from_buffer( 65 iv_nonce = self._backend._ffi.from_buffer(mode.tweak) [all …]
|
D | ec.py | 95 self._backend = backend 105 return _ecdsa_sig_sign(self._backend, self._private_key, digest) 111 self._backend = backend 122 self._backend, self._public_key, self._signature, digest 129 self._backend = backend 148 self._backend, self, signature_algorithm.algorithm 153 self._backend.elliptic_curve_exchange_algorithm_supported( 167 group = self._backend._lib.EC_KEY_get0_group(self._ec_key) 168 z_len = (self._backend._lib.EC_GROUP_get_degree(group) + 7) // 8 169 self._backend.openssl_assert(z_len > 0) [all …]
|
D | hashes.py | 18 self._backend = backend 21 ctx = self._backend._lib.Cryptography_EVP_MD_CTX_new() 22 ctx = self._backend._ffi.gc( 23 ctx, self._backend._lib.Cryptography_EVP_MD_CTX_free 25 evp_md = self._backend._evp_md_from_algorithm(algorithm) 26 if evp_md == self._backend._ffi.NULL: 32 res = self._backend._lib.EVP_DigestInit_ex(ctx, evp_md, 33 self._backend._ffi.NULL) 34 self._backend.openssl_assert(res != 0) 41 copied_ctx = self._backend._lib.Cryptography_EVP_MD_CTX_new() [all …]
|
D | hmac.py | 20 self._backend = backend 23 ctx = self._backend._lib.Cryptography_HMAC_CTX_new() 24 self._backend.openssl_assert(ctx != self._backend._ffi.NULL) 25 ctx = self._backend._ffi.gc( 26 ctx, self._backend._lib.Cryptography_HMAC_CTX_free 28 evp_md = self._backend._evp_md_from_algorithm(algorithm) 29 if evp_md == self._backend._ffi.NULL: 35 key_ptr = self._backend._ffi.from_buffer(key) 36 res = self._backend._lib.HMAC_Init_ex( 37 ctx, key_ptr, len(key), evp_md, self._backend._ffi.NULL [all …]
|
D | x25519.py | 23 self._backend = backend 62 return self._backend._public_key_bytes( 67 ucharpp = self._backend._ffi.new("unsigned char **") 68 res = self._backend._lib.EVP_PKEY_get1_tls_encodedpoint( 71 self._backend.openssl_assert(res == 32) 72 self._backend.openssl_assert(ucharpp[0] != self._backend._ffi.NULL) 73 data = self._backend._ffi.gc( 74 ucharpp[0], self._backend._lib.OPENSSL_free 76 return self._backend._ffi.buffer(data, res)[:] 82 self._backend = backend [all …]
|
D | rsa.py | 278 self._backend = backend 287 self._hash_ctx = hashes.Hash(self._algorithm, self._backend) 294 self._backend, 305 self._backend = backend 316 self._hash_ctx = hashes.Hash(self._algorithm, self._backend) 323 self._backend, 335 self._backend = backend 339 n = self._backend._ffi.new("BIGNUM **") 340 self._backend._lib.RSA_get0_key( 341 self._rsa_cdata, n, self._backend._ffi.NULL, [all …]
|
D | cmac.py | 23 self._backend = backend 29 registry = self._backend._cipher_registry 32 evp_cipher = adapter(self._backend, algorithm, CBC) 34 ctx = self._backend._lib.CMAC_CTX_new() 36 self._backend.openssl_assert(ctx != self._backend._ffi.NULL) 37 ctx = self._backend._ffi.gc(ctx, self._backend._lib.CMAC_CTX_free) 39 key_ptr = self._backend._ffi.from_buffer(self._key) 40 res = self._backend._lib.CMAC_Init( 42 evp_cipher, self._backend._ffi.NULL 44 self._backend.openssl_assert(res == 1) [all …]
|
D | x448.py | 20 self._backend = backend 47 return self._backend._public_key_bytes( 52 buf = self._backend._ffi.new("unsigned char []", _X448_KEY_SIZE) 53 buflen = self._backend._ffi.new("size_t *", _X448_KEY_SIZE) 54 res = self._backend._lib.EVP_PKEY_get_raw_public_key( 57 self._backend.openssl_assert(res == 1) 58 self._backend.openssl_assert(buflen[0] == _X448_KEY_SIZE) 59 return self._backend._ffi.buffer(buf, _X448_KEY_SIZE)[:] 65 self._backend = backend 69 buf = self._backend._ffi.new("unsigned char []", _X448_KEY_SIZE) [all …]
|
/external/python/cffi/cffi/ |
D | api.py | 66 self._backend = backend 198 return self._backend.typeof(cdecl) 215 return self._backend.sizeof(BType) 217 return self._backend.sizeof(cdecl) 225 return self._backend.alignof(cdecl) 263 return self._backend.newp(cdecl, init) 280 compiled_ffi = self._backend.FFI() 296 return self._backend.cast(cdecl, source) 314 return self._backend.string(cdata, maxlen) 331 return self._backend.unpack(cdata, length) [all …]
|
/external/autotest/database/ |
D | database_connection.py | 166 self._backend = None 258 self._backend.connect(host=self.host, username=self.username, 262 except self._backend.OperationalError: 285 self._backend = self._get_backend(self.db_type) 286 _copy_exceptions(self._backend, self) 291 if self._backend: 292 self._backend.disconnect() 304 results = self._backend.execute(query, parameters) 305 except self._backend.OperationalError: 312 results = self._backend.execute(query, parameters) [all …]
|
/external/python/oauth2client/oauth2client/contrib/ |
D | multiprocess_file_storage.py | 323 self._backend = _get_backend(filename) 326 self._backend.acquire_lock() 329 self._backend.release_lock() 337 credential = self._backend.locked_get(self._key) 351 return self._backend.locked_put(self._key, credentials) 355 return self._backend.locked_delete(self._key)
|
/external/python/cryptography/src/cryptography/hazmat/primitives/kdf/ |
D | hkdf.py | 36 self._backend = backend 41 h = hmac.HMAC(self._salt, self._algorithm, backend=self._backend) 65 self._backend = backend 91 h = hmac.HMAC(key_material, self._algorithm, backend=self._backend)
|
D | concatkdf.py | 68 self._backend = backend 72 return hashes.Hash(self._algorithm, self._backend) 109 self._backend = backend 113 return hmac.HMAC(self._salt, self._algorithm, self._backend)
|
D | pbkdf2.py | 37 self._backend = backend 45 return self._backend.derive_pbkdf2_hmac(
|
D | scrypt.py | 48 self._backend = backend 56 return self._backend.derive_scrypt(
|
D | x963kdf.py | 42 self._backend = backend 55 h = hashes.Hash(self._algorithm, self._backend)
|
/external/python/cryptography/src/cryptography/hazmat/primitives/ |
D | cmac.py | 30 self._backend = backend 32 self._ctx = self._backend.create_cmac_ctx(self._algorithm) 63 backend=self._backend,
|
D | hmac.py | 29 self._backend = backend 32 self._ctx = self._backend.create_hmac_ctx(key, self.algorithm) 50 backend=self._backend,
|
D | hashes.py | 80 self._backend = backend 83 self._ctx = self._backend.create_hash_ctx(self.algorithm) 99 self.algorithm, backend=self._backend, ctx=self._ctx.copy()
|
/external/python/cryptography/src/cryptography/ |
D | fernet.py | 43 self._backend = backend 60 algorithms.AES(self._encryption_key), modes.CBC(iv), self._backend 68 h = HMAC(self._signing_key, hashes.SHA256(), backend=self._backend) 101 h = HMAC(self._signing_key, hashes.SHA256(), backend=self._backend) 122 algorithms.AES(self._encryption_key), modes.CBC(iv), self._backend
|
/external/python/cryptography/src/cryptography/hazmat/primitives/twofactor/ |
D | hotp.py | 45 self._backend = backend 57 ctx = hmac.HMAC(self._key, self._algorithm, self._backend)
|
12