Searched refs:rsactx (Results 1 – 8 of 8) sorted by relevance
/third_party/libwebsockets/lib/jose/jwe/ |
D | jwe-rsa-aescbc.c | 52 struct lws_genrsa_ctx rsactx; in lws_jwe_encrypt_rsa_aes_cbc_hs() local 100 if (lws_genrsa_create(&rsactx, jwe->jws.jwk->e, jwe->jws.context, in lws_jwe_encrypt_rsa_aes_cbc_hs() 114 n = lws_genrsa_public_encrypt(&rsactx, (uint8_t *)ekey, (unsigned int)hlen, in lws_jwe_encrypt_rsa_aes_cbc_hs() 116 lws_genrsa_destroy(&rsactx); in lws_jwe_encrypt_rsa_aes_cbc_hs() 136 struct lws_genrsa_ctx rsactx; in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs() local 154 if (lws_genrsa_create(&rsactx, jwe->jws.jwk->e, jwe->jws.context, in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs() 163 n = lws_genrsa_private_decrypt(&rsactx, in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs() 167 lws_genrsa_destroy(&rsactx); in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
|
D | jwe-rsa-aesgcm.c | 35 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, (unsigned int)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()
|
/third_party/libwebsockets/lib/tls/mbedtls/ |
D | mbedtls-x509.c | 384 mbedtls_rsa_context *rsactx; in lws_x509_public_to_jwk() local 394 rsactx = mbedtls_pk_rsa(x509->cert.MBEDTLS_PRIVATE(pk)); in lws_x509_public_to_jwk() 396 mpi[LWS_GENCRYPTO_RSA_KEYEL_E] = &rsactx->MBEDTLS_PRIVATE(E); in lws_x509_public_to_jwk() 397 mpi[LWS_GENCRYPTO_RSA_KEYEL_N] = &rsactx->MBEDTLS_PRIVATE(N); in lws_x509_public_to_jwk() 398 mpi[LWS_GENCRYPTO_RSA_KEYEL_D] = &rsactx->MBEDTLS_PRIVATE(D); in lws_x509_public_to_jwk() 399 mpi[LWS_GENCRYPTO_RSA_KEYEL_P] = &rsactx->MBEDTLS_PRIVATE(P); in lws_x509_public_to_jwk() 400 mpi[LWS_GENCRYPTO_RSA_KEYEL_Q] = &rsactx->MBEDTLS_PRIVATE(Q); in lws_x509_public_to_jwk() 401 mpi[LWS_GENCRYPTO_RSA_KEYEL_DP] = &rsactx->MBEDTLS_PRIVATE(DP); in lws_x509_public_to_jwk() 402 mpi[LWS_GENCRYPTO_RSA_KEYEL_DQ] = &rsactx->MBEDTLS_PRIVATE(DQ); in lws_x509_public_to_jwk() 403 mpi[LWS_GENCRYPTO_RSA_KEYEL_QI] = &rsactx->MBEDTLS_PRIVATE(QP); in lws_x509_public_to_jwk() [all …]
|
/third_party/libwebsockets/lib/cose/ |
D | cose_sign_alg.c | 138 if (lws_genrsa_create(&alg->u.rsactx, ck->e, cx, in lws_cose_sign_alg_create() 249 lws_genrsa_hash_sign(&alg->u.rsactx, digest, htype, in lws_cose_sign_alg_complete() 255 lws_genrsa_destroy(&alg->u.rsactx); in lws_cose_sign_alg_complete()
|
D | cose_validate_alg.c | 137 if (lws_genrsa_create(&alg->u.rsactx, ck->e, cx, in lws_cose_val_alg_create() 261 lws_genrsa_hash_sig_verify(&alg->u.rsactx, digest, in lws_cose_val_alg_destroy() 269 lws_genrsa_destroy(&alg->u.rsactx); in lws_cose_val_alg_destroy()
|
D | private-lib-cose.h | 55 struct lws_genrsa_ctx rsactx; member
|
/third_party/libwebsockets/lib/jose/jws/ |
D | jws.c | 454 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() 748 struct lws_genrsa_ctx rsactx; in lws_jws_sign_from_b64() local 779 if (lws_genrsa_create(&rsactx, jws->jwk->e, jws->context, in lws_jws_sign_from_b64() 791 n = lws_genrsa_hash_sign(&rsactx, digest, jose->alg->hash_type, in lws_jws_sign_from_b64() 793 lws_genrsa_destroy(&rsactx); in lws_jws_sign_from_b64()
|
/third_party/libwebsockets/plugins/acme-client/ |
D | protocol_lws_acme_client.c | 125 struct lws_genrsa_ctx rsactx; member 643 lws_genrsa_destroy(&vhd->rsactx); in lws_acme_finished() 680 n = lws_genrsa_new_keypair(vhd->context, &vhd->rsactx, LGRSAM_PKCS1_1_5, in lws_acme_load_create_auth_keys()
|