Home
last modified time | relevance | path

Searched refs:ex_data (Results 1 – 25 of 82) sorted by relevance

1234

/external/chromium_org/net/android/
Dkeystore_openssl.cc107 KeyExData *ex_data = reinterpret_cast<KeyExData*>(ptr); in ExDataFree() local
108 if (ex_data != NULL) { in ExDataFree()
109 ReleaseKey(ex_data->private_key); in ExDataFree()
110 delete ex_data; in ExDataFree()
168 const KeyExData *ex_data = RsaGetExData(rsa); in RsaMethodSize() local
169 return ex_data->cached_size; in RsaMethodSize()
205 const KeyExData *ex_data = RsaGetExData(rsa); in RsaMethodSignRaw() local
206 if (!ex_data || !ex_data->private_key) { in RsaMethodSignRaw()
213 if (ex_data->legacy_rsa) { in RsaMethodSignRaw()
214 int ret = ex_data->legacy_rsa->meth->rsa_priv_enc( in RsaMethodSignRaw()
[all …]
/external/chromium_org/net/ssl/
Dopenssl_platform_key_mac.cc117 CRYPTO_EX_DATA* ex_data, in ExDataFree() argument
167 int MakeCSSMSignature(const KeyExData* ex_data, in MakeCSSMSignature() argument
174 OSStatus status = SecKeyGetCSPHandle(ex_data->key.get(), &csp_handle); in MakeCSSMSignature()
182 status = SecKeyGetCredentials(ex_data->key.get(), CSSM_ACL_AUTHORIZATION_SIGN, in MakeCSSMSignature()
192 csp_handle, ex_data->cssm_key->KeyHeader.AlgorithmId, cssm_creds, in MakeCSSMSignature()
193 ex_data->cssm_key, cssm_signature.InitializeInto()) != CSSM_OK) { in MakeCSSMSignature()
198 if (ex_data->cssm_key->KeyHeader.AlgorithmId == CSSM_ALGID_RSA) { in MakeCSSMSignature()
237 const KeyExData *ex_data = RsaGetExData(rsa); in RsaMethodSize() local
238 return (ex_data->cssm_key->KeyHeader.LogicalKeySizeInBits + 7) / 8; in RsaMethodSize()
267 const KeyExData *ex_data = RsaGetExData(rsa); in RsaMethodSignRaw() local
[all …]
/external/openssl/crypto/ec/
Dec_lib.c549 int EC_EX_DATA_set_data(EC_EXTRA_DATA **ex_data, void *data, in EC_EX_DATA_set_data() argument
554 if (ex_data == NULL) in EC_EX_DATA_set_data()
557 for (d = *ex_data; d != NULL; d = d->next) in EC_EX_DATA_set_data()
579 d->next = *ex_data; in EC_EX_DATA_set_data()
580 *ex_data = d; in EC_EX_DATA_set_data()
586 void *EC_EX_DATA_get_data(const EC_EXTRA_DATA *ex_data, in EC_EX_DATA_get_data() argument
591 for (d = ex_data; d != NULL; d = d->next) in EC_EX_DATA_get_data()
601 void EC_EX_DATA_free_data(EC_EXTRA_DATA **ex_data, in EC_EX_DATA_free_data() argument
606 if (ex_data == NULL) in EC_EX_DATA_free_data()
609 for (p = ex_data; *p != NULL; p = &((*p)->next)) in EC_EX_DATA_free_data()
[all …]
Dec_key.c547 EC_EXTRA_DATA *ex_data; in EC_KEY_insert_key_method_data() local
550 ex_data = EC_EX_DATA_get_data(key->method_data, dup_func, free_func, clear_free_func); in EC_KEY_insert_key_method_data()
551 if (ex_data == NULL) in EC_KEY_insert_key_method_data()
555 return ex_data; in EC_KEY_insert_key_method_data()
/external/openssl/crypto/ecdh/
Dech_lib.c170 CRYPTO_new_ex_data(CRYPTO_EX_INDEX_ECDH, ret, &ret->ex_data); in ECDH_DATA_new_method()
174 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ECDH, ret, &ret->ex_data); in ECDH_DATA_new_method()
207 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ECDH, r, &r->ex_data); in ecdh_data_free()
263 return(CRYPTO_set_ex_data(&ecdh->ex_data,idx,arg)); in ECDH_set_ex_data()
272 return(CRYPTO_get_ex_data(&ecdh->ex_data,idx)); in ECDH_get_ex_data()
Dech_locl.h93 CRYPTO_EX_DATA ex_data; member
/external/openssl/crypto/
Dex_data.c249 static LHASH_OF(EX_CLASS_ITEM) *ex_data = NULL;
271 if(!ex_data in IMPLEMENT_LHASH_COMP_FN()
272 && (ex_data = lh_EX_CLASS_ITEM_new()) == NULL) in IMPLEMENT_LHASH_COMP_FN()
279 #define EX_DATA_CHECK(iffail) if(!ex_data && !ex_data_check()) {iffail}
305 p = lh_EX_CLASS_ITEM_retrieve(ex_data, &d); in def_get_class()
320 (void)lh_EX_CLASS_ITEM_insert(ex_data, gen); in def_get_class()
382 lh_EX_CLASS_ITEM_doall(ex_data, def_cleanup_cb); in int_cleanup()
383 lh_EX_CLASS_ITEM_free(ex_data); in int_cleanup()
384 ex_data = NULL; in int_cleanup()
/external/openssl/crypto/ecdsa/
Decs_lib.c149 CRYPTO_new_ex_data(CRYPTO_EX_INDEX_ECDSA, ret, &ret->ex_data); in ECDSA_DATA_new_method()
153 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ECDSA, ret, &ret->ex_data); in ECDSA_DATA_new_method()
185 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ECDSA, r, &r->ex_data); in ecdsa_data_free()
275 return(CRYPTO_set_ex_data(&ecdsa->ex_data,idx,arg)); in ECDSA_set_ex_data()
284 return(CRYPTO_get_ex_data(&ecdsa->ex_data,idx)); in ECDSA_get_ex_data()
Decs_locl.h101 CRYPTO_EX_DATA ex_data; member
/external/chromium_org/third_party/boringssl/src/crypto/dh/
Ddh.c92 if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_DH, dh, &dh->ex_data)) { in DH_new_method()
98 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DH, dh, &dh->ex_data); in DH_new_method()
121 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DH, dh, &dh->ex_data); in DH_free()
236 return (CRYPTO_set_ex_data(&d->ex_data, idx, arg)); in DH_set_ex_data()
240 return (CRYPTO_get_ex_data(&d->ex_data, idx)); in DH_get_ex_data()
/external/openssl/crypto/dh/
Ddh_lib.c173 CRYPTO_new_ex_data(CRYPTO_EX_INDEX_DH, ret, &ret->ex_data); in DH_new_method()
180 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DH, ret, &ret->ex_data); in DH_new_method()
211 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DH, r, &r->ex_data); in DH_free()
249 return(CRYPTO_set_ex_data(&d->ex_data,idx,arg)); in DH_set_ex_data()
254 return(CRYPTO_get_ex_data(&d->ex_data,idx)); in DH_get_ex_data()
/external/openssl/crypto/asn1/
Dx_x509.c104 CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data); in x509_cb()
113 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data); in x509_cb()
153 return(CRYPTO_set_ex_data(&r->ex_data,idx,arg)); in X509_set_ex_data()
158 return(CRYPTO_get_ex_data(&r->ex_data,idx)); in X509_get_ex_data()
/external/chromium_org/third_party/boringssl/src/crypto/ec/
Dec_key.c101 if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_EC_KEY, ret, &ret->ex_data)) { in EC_KEY_new_method()
112 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_EC_KEY, ret, &ret->ex_data); in EC_KEY_new_method()
160 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_EC_KEY, r, &r->ex_data); in EC_KEY_free()
215 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_EC_KEY, dest, &dest->ex_data); in EC_KEY_copy()
216 if (!CRYPTO_dup_ex_data(CRYPTO_EX_INDEX_EC_KEY, &dest->ex_data, in EC_KEY_copy()
217 &src->ex_data)) { in EC_KEY_copy()
512 return CRYPTO_set_ex_data(&d->ex_data, idx, arg); in EC_KEY_set_ex_data()
516 return CRYPTO_get_ex_data(&d->ex_data, idx); in EC_KEY_get_ex_data()
/external/chromium_org/third_party/boringssl/src/crypto/x509/
Dx_x509.c103 CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data); in x509_cb()
112 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data); in x509_cb()
154 return(CRYPTO_set_ex_data(&r->ex_data,idx,arg)); in X509_set_ex_data()
159 return(CRYPTO_get_ex_data(&r->ex_data,idx)); in X509_get_ex_data()
/external/openssl/crypto/dsa/
Ddsa_lib.c180 CRYPTO_new_ex_data(CRYPTO_EX_INDEX_DSA, ret, &ret->ex_data); in DSA_new_method()
187 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DSA, ret, &ret->ex_data); in DSA_new_method()
221 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DSA, r, &r->ex_data); in DSA_free()
280 return(CRYPTO_set_ex_data(&d->ex_data,idx,arg)); in DSA_set_ex_data()
285 return(CRYPTO_get_ex_data(&d->ex_data,idx)); in DSA_get_ex_data()
/external/openssl/crypto/rsa/
Drsa_lib.c192 if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_RSA, ret, &ret->ex_data)) in RSA_new_method()
208 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_RSA, ret, &ret->ex_data); in RSA_new_method()
241 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_RSA, r, &r->ex_data); in RSA_free()
282 return(CRYPTO_set_ex_data(&r->ex_data,idx,arg)); in RSA_set_ex_data()
287 return(CRYPTO_get_ex_data(&r->ex_data,idx)); in RSA_get_ex_data()
/external/openssl/crypto/engine/
Deng_lib.c77 CRYPTO_new_ex_data(CRYPTO_EX_INDEX_ENGINE, ret, &ret->ex_data); in ENGINE_new()
135 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ENGINE, e, &e->ex_data); in engine_free_util()
213 return(CRYPTO_set_ex_data(&e->ex_data, idx, arg)); in ENGINE_set_ex_data()
218 return(CRYPTO_get_ex_data(&e->ex_data, idx)); in ENGINE_get_ex_data()
/external/chromium_org/third_party/boringssl/src/crypto/dsa/
Ddsa.c96 if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_DSA, dsa, &dsa->ex_data)) { in DSA_new_method()
103 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DSA, dsa, &dsa->ex_data); in DSA_new_method()
126 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DSA, dsa, &dsa->ex_data); in DSA_free()
330 return CRYPTO_set_ex_data(&d->ex_data, idx, arg); in DSA_set_ex_data()
334 return CRYPTO_get_ex_data(&d->ex_data, idx); in DSA_get_ex_data()
/external/openssl/crypto/bio/
Dbio_lib.c100 CRYPTO_new_ex_data(CRYPTO_EX_INDEX_BIO, bio, &bio->ex_data); in BIO_set()
105 &bio->ex_data); in BIO_set()
133 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_BIO, a, &a->ex_data); in BIO_free()
545 if (!CRYPTO_dup_ex_data(CRYPTO_EX_INDEX_BIO, &new_bio->ex_data, in BIO_dup_chain()
546 &bio->ex_data)) in BIO_dup_chain()
582 return(CRYPTO_set_ex_data(&(bio->ex_data),idx,data)); in BIO_set_ex_data()
587 return(CRYPTO_get_ex_data(&(bio->ex_data),idx)); in BIO_get_ex_data()
/external/openssl/crypto/comp/
Dc_zlib.c172 CRYPTO_new_ex_data(CRYPTO_EX_INDEX_COMP,ctx,&ctx->ex_data); in zlib_stateful_init()
173 CRYPTO_set_ex_data(&ctx->ex_data,zlib_stateful_ex_idx,state); in zlib_stateful_init()
183 (struct zlib_state *)CRYPTO_get_ex_data(&ctx->ex_data, in zlib_stateful_finish()
188 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_COMP,ctx,&ctx->ex_data); in zlib_stateful_finish()
196 (struct zlib_state *)CRYPTO_get_ex_data(&ctx->ex_data, in zlib_stateful_compress_block()
224 (struct zlib_state *)CRYPTO_get_ex_data(&ctx->ex_data, in zlib_stateful_expand_block()
Dcomp.h38 CRYPTO_EX_DATA ex_data; member
/external/openssl/crypto/store/
Dstr_locl.h117 CRYPTO_EX_DATA ex_data; member
/external/openssl/crypto/ui/
Dui_locl.h146 CRYPTO_EX_DATA ex_data; member
/external/chromium_org/third_party/boringssl/src/crypto/rsa/
Drsa.c94 if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_RSA, rsa, &rsa->ex_data)) { in RSA_new_method()
101 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_RSA, rsa, &rsa->ex_data); in RSA_new_method()
126 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DSA, rsa, &rsa->ex_data); in RSA_free()
270 return CRYPTO_set_ex_data(&d->ex_data, idx, arg); in RSA_set_ex_data()
274 return CRYPTO_get_ex_data(&d->ex_data, idx); in RSA_get_ex_data()
/external/openssl/include/openssl/
Dcomp.h38 CRYPTO_EX_DATA ex_data; member

1234