Home
last modified time | relevance | path

Searched refs:LWS_GENCRYPTO_EC_KEYEL_D (Results 1 – 8 of 8) sorted by relevance

/external/libwebsockets/lib/tls/openssl/
Dlws-genec.c136 if (el[LWS_GENCRYPTO_EC_KEYEL_D].len) { in lws_genec_eckey_import()
137 bn_d = BN_bin2bn(el[LWS_GENCRYPTO_EC_KEYEL_D].buf, in lws_genec_eckey_import()
138 el[LWS_GENCRYPTO_EC_KEYEL_D].len, NULL); in lws_genec_eckey_import()
191 if ((el[LWS_GENCRYPTO_EC_KEYEL_D].len && in lws_genec_keypair_import()
192 el[LWS_GENCRYPTO_EC_KEYEL_D].len != curve->key_bytes) || in lws_genec_keypair_import()
197 ctx->has_private = !!el[LWS_GENCRYPTO_EC_KEYEL_D].len; in lws_genec_keypair_import()
Dopenssl-x509.c378 mpi[LWS_GENCRYPTO_EC_KEYEL_D] = NULL; in lws_x509_public_to_jwk()
540 jwk->e[LWS_GENCRYPTO_EC_KEYEL_D].len = n; in lws_x509_jwk_privkey_pem()
541 jwk->e[LWS_GENCRYPTO_EC_KEYEL_D].buf = lws_malloc(n, "ec"); in lws_x509_jwk_privkey_pem()
542 if (!jwk->e[LWS_GENCRYPTO_EC_KEYEL_D].buf) in lws_x509_jwk_privkey_pem()
545 m = BN_bn2binpad(cmpi, jwk->e[LWS_GENCRYPTO_EC_KEYEL_D].buf, in lws_x509_jwk_privkey_pem()
546 jwk->e[LWS_GENCRYPTO_EC_KEYEL_D].len); in lws_x509_jwk_privkey_pem()
/external/libwebsockets/lib/tls/mbedtls/
Dlws-genec.c72 if ((el[LWS_GENCRYPTO_EC_KEYEL_D].len && in lws_genec_keypair_import()
73 el[LWS_GENCRYPTO_EC_KEYEL_D].len != curve->key_bytes) || in lws_genec_keypair_import()
82 ctx->has_private = !!el[LWS_GENCRYPTO_EC_KEYEL_D].len; in lws_genec_keypair_import()
87 mbedtls_mpi_read_binary(&kp.d, el[LWS_GENCRYPTO_EC_KEYEL_D].buf, in lws_genec_keypair_import()
88 el[LWS_GENCRYPTO_EC_KEYEL_D].len)) in lws_genec_keypair_import()
Dmbedtls-x509.c313 mpi[LWS_GENCRYPTO_EC_KEYEL_D] = &ecpctx->d; in lws_x509_public_to_jwk()
393 mpi[LWS_GENCRYPTO_EC_KEYEL_D] = &ecpctx->d; in lws_x509_jwk_privkey_pem()
394 n = LWS_GENCRYPTO_EC_KEYEL_D; in lws_x509_jwk_privkey_pem()
/external/libwebsockets/lib/jose/jwe/
Djwe-ecdh-es-aeskw.c252 lws_explicit_bzero(ephem->e[LWS_GENCRYPTO_EC_KEYEL_D].buf, in lws_jwe_encrypt_ecdh()
253 ephem->e[LWS_GENCRYPTO_EC_KEYEL_D].len); in lws_jwe_encrypt_ecdh()
254 lws_free_set_NULL(ephem->e[LWS_GENCRYPTO_EC_KEYEL_D].buf); in lws_jwe_encrypt_ecdh()
255 ephem->e[LWS_GENCRYPTO_EC_KEYEL_D].len = 0; in lws_jwe_encrypt_ecdh()
/external/libwebsockets/include/libwebsockets/
Dlws-gencrypto.h69 LWS_GENCRYPTO_EC_KEYEL_D = LWS_GENCRYPTO_RSA_KEYEL_D, enumerator
/external/libwebsockets/lib/jose/jwk/
Djwk.c117 { "d", LWS_GENCRYPTO_EC_KEYEL_D, 2 | 0 },
/external/libwebsockets/lib/jose/jws/
Djws.c828 !jws->jwk->e[LWS_GENCRYPTO_EC_KEYEL_D].buf) in lws_jws_sign_from_b64()