Home
last modified time | relevance | path

Searched refs:dh_cdata (Results 1 – 2 of 2) sorted by relevance

/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Ddh.py13 def _dh_params_dup(dh_cdata, backend): argument
17 param_cdata = lib.DHparams_dup(dh_cdata)
23 lib.DH_get0_pqg(dh_cdata, ffi.NULL, q, ffi.NULL)
31 def _dh_cdata_to_parameters(dh_cdata, backend): argument
32 param_cdata = _dh_params_dup(dh_cdata, backend)
38 def __init__(self, backend, dh_cdata): argument
40 self._dh_cdata = dh_cdata
97 def _get_dh_num_bits(backend, dh_cdata): argument
99 backend._lib.DH_get0_pqg(dh_cdata, p,
108 def __init__(self, backend, dh_cdata, evp_pkey): argument
[all …]
Dbackend.py508 dh_cdata = self._lib.EVP_PKEY_get1_DH(evp_pkey)
509 self.openssl_assert(dh_cdata != self._ffi.NULL)
510 dh_cdata = self._ffi.gc(dh_cdata, self._lib.DH_free)
511 return _DHPrivateKey(self, dh_cdata, evp_pkey)
545 dh_cdata = self._lib.EVP_PKEY_get1_DH(evp_pkey)
546 self.openssl_assert(dh_cdata != self._ffi.NULL)
547 dh_cdata = self._ffi.gc(dh_cdata, self._lib.DH_free)
548 return _DHPublicKey(self, dh_cdata, evp_pkey)
1056 dh_cdata = self._lib.PEM_read_bio_DHparams(
1058 if dh_cdata != self._ffi.NULL:
[all …]