Home
last modified time | relevance | path

Searched refs:rsactx (Results 1 – 5 of 5) sorted by relevance

/external/libwebsockets/lib/tls/mbedtls/
Dmbedtls-x509.c283 mbedtls_rsa_context *rsactx; in lws_x509_public_to_jwk() local
293 rsactx = mbedtls_pk_rsa(x509->cert.pk); in lws_x509_public_to_jwk()
295 mpi[LWS_GENCRYPTO_RSA_KEYEL_E] = &rsactx->E; in lws_x509_public_to_jwk()
296 mpi[LWS_GENCRYPTO_RSA_KEYEL_N] = &rsactx->N; in lws_x509_public_to_jwk()
297 mpi[LWS_GENCRYPTO_RSA_KEYEL_D] = &rsactx->D; in lws_x509_public_to_jwk()
298 mpi[LWS_GENCRYPTO_RSA_KEYEL_P] = &rsactx->P; in lws_x509_public_to_jwk()
299 mpi[LWS_GENCRYPTO_RSA_KEYEL_Q] = &rsactx->Q; in lws_x509_public_to_jwk()
300 mpi[LWS_GENCRYPTO_RSA_KEYEL_DP] = &rsactx->DP; in lws_x509_public_to_jwk()
301 mpi[LWS_GENCRYPTO_RSA_KEYEL_DQ] = &rsactx->DQ; in lws_x509_public_to_jwk()
302 mpi[LWS_GENCRYPTO_RSA_KEYEL_QI] = &rsactx->QP; in lws_x509_public_to_jwk()
[all …]
/external/libwebsockets/lib/jose/jwe/
Djwe-rsa-aescbc.c51 struct lws_genrsa_ctx rsactx; in lws_jwe_encrypt_rsa_aes_cbc_hs() local
99 if (lws_genrsa_create(&rsactx, jwe->jws.jwk->e, jwe->jws.context, in lws_jwe_encrypt_rsa_aes_cbc_hs()
113 n = lws_genrsa_public_encrypt(&rsactx, (uint8_t *)ekey, hlen, in lws_jwe_encrypt_rsa_aes_cbc_hs()
115 lws_genrsa_destroy(&rsactx); in lws_jwe_encrypt_rsa_aes_cbc_hs()
135 struct lws_genrsa_ctx rsactx; in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs() local
153 if (lws_genrsa_create(&rsactx, jwe->jws.jwk->e, jwe->jws.context, in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
162 n = lws_genrsa_private_decrypt(&rsactx, in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
166 lws_genrsa_destroy(&rsactx); in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
Djwe-rsa-aesgcm.c35 struct lws_genrsa_ctx rsactx; in lws_jwe_encrypt_rsa_aes_gcm() local
96 if (lws_genrsa_create(&rsactx, jwe->jws.jwk->e, jwe->jws.context, in lws_jwe_encrypt_rsa_aes_gcm()
105 n = lws_genrsa_public_encrypt(&rsactx, jwe->cek, ekbytes, in lws_jwe_encrypt_rsa_aes_gcm()
107 lws_genrsa_destroy(&rsactx); in lws_jwe_encrypt_rsa_aes_gcm()
127 struct lws_genrsa_ctx rsactx; in lws_jwe_auth_and_decrypt_rsa_aes_gcm() local
145 if (lws_genrsa_create(&rsactx, jwe->jws.jwk->e, jwe->jws.context, in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
154 n = lws_genrsa_private_decrypt(&rsactx, in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
158 lws_genrsa_destroy(&rsactx); in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
/external/libwebsockets/lib/jose/jws/
Djws.c454 struct lws_genrsa_ctx rsactx; in lws_jws_sig_confirm() local
521 if (lws_genrsa_create(&rsactx, jwk->e, context, padding, in lws_jws_sig_confirm()
528 n = lws_genrsa_hash_sig_verify(&rsactx, digest, in lws_jws_sig_confirm()
533 lws_genrsa_destroy(&rsactx); in lws_jws_sig_confirm()
747 struct lws_genrsa_ctx rsactx; in lws_jws_sign_from_b64() local
778 if (lws_genrsa_create(&rsactx, jws->jwk->e, jws->context, in lws_jws_sign_from_b64()
790 n = lws_genrsa_hash_sign(&rsactx, digest, jose->alg->hash_type, in lws_jws_sign_from_b64()
792 lws_genrsa_destroy(&rsactx); in lws_jws_sign_from_b64()
/external/libwebsockets/plugins/acme-client/
Dprotocol_lws_acme_client.c118 struct lws_genrsa_ctx rsactx; member
636 lws_genrsa_destroy(&vhd->rsactx); in lws_acme_finished()
673 n = lws_genrsa_new_keypair(vhd->context, &vhd->rsactx, LGRSAM_PKCS1_1_5, in lws_acme_load_create_auth_keys()