Home
last modified time | relevance | path

Searched defs:rsa (Results 1 – 25 of 98) sorted by relevance

1234

/third_party/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c88 RSA *rsa = OPENSSL_malloc(sizeof(RSA)); in RSA_new_method() local
121 void RSA_free(RSA *rsa) { in RSA_free()
163 int RSA_up_ref(RSA *rsa) { in RSA_up_ref()
168 unsigned RSA_bits(const RSA *rsa) { return BN_num_bits(rsa->n); } in RSA_bits()
170 void RSA_get0_key(const RSA *rsa, const BIGNUM **out_n, const BIGNUM **out_e, in RSA_get0_key()
183 void RSA_get0_factors(const RSA *rsa, const BIGNUM **out_p, in RSA_get0_factors()
193 void RSA_get0_crt_params(const RSA *rsa, const BIGNUM **out_dmp1, in RSA_get0_crt_params()
206 int RSA_set0_key(RSA *rsa, BIGNUM *n, BIGNUM *e, BIGNUM *d) { in RSA_set0_key()
228 int RSA_set0_factors(RSA *rsa, BIGNUM *p, BIGNUM *q) { in RSA_set0_factors()
246 int RSA_set0_crt_params(RSA *rsa, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) { in RSA_set0_crt_params()
[all …]
Drsa_impl.c75 static int check_modulus_and_exponent_sizes(const RSA *rsa) { in check_modulus_and_exponent_sizes()
132 static int freeze_private_key(RSA *rsa, BN_CTX *ctx) { in freeze_private_key()
249 size_t rsa_default_size(const RSA *rsa) { in rsa_default_size()
253 int RSA_encrypt(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_encrypt()
357 static BN_BLINDING *rsa_blinding_get(RSA *rsa, unsigned *index_used, in rsa_blinding_get()
441 static void rsa_blinding_release(RSA *rsa, BN_BLINDING *blinding, in rsa_blinding_release()
455 int rsa_default_sign_raw(RSA *rsa, size_t *out_len, uint8_t *out, in rsa_default_sign_raw()
503 int rsa_default_decrypt(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in rsa_default_decrypt()
570 int RSA_verify_raw(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, in RSA_verify_raw()
668 int rsa_default_private_transform(RSA *rsa, uint8_t *out, const uint8_t *in, in rsa_default_private_transform()
[all …]
/third_party/openssl/crypto/rsa/
Drsa_crpt.c28 RSA *rsa, int padding) in RSA_public_encrypt()
34 unsigned char *to, RSA *rsa, int padding) in RSA_private_encrypt()
40 unsigned char *to, RSA *rsa, int padding) in RSA_private_decrypt()
46 RSA *rsa, int padding) in RSA_public_decrypt()
56 void RSA_blinding_off(RSA *rsa) in RSA_blinding_off()
64 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx) in RSA_blinding_on()
110 BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx) in RSA_setup_blinding()
Drsa_meth.c109 unsigned char *to, RSA *rsa, in RSA_meth_set_pub_enc()
125 unsigned char *to, RSA *rsa, in RSA_meth_set_pub_dec()
141 unsigned char *to, RSA *rsa, in RSA_meth_set_priv_enc()
157 unsigned char *to, RSA *rsa, in RSA_meth_set_priv_dec()
172 int (*mod_exp) (BIGNUM *r0, const BIGNUM *i, RSA *rsa, in RSA_meth_set_mod_exp()
205 int RSA_meth_set_init(RSA_METHOD *meth, int (*init) (RSA *rsa)) in RSA_meth_set_init()
217 int RSA_meth_set_finish(RSA_METHOD *meth, int (*finish) (RSA *rsa)) in RSA_meth_set_finish()
236 const RSA *rsa)) in RSA_meth_set_sign()
254 unsigned int siglen, const RSA *rsa)) in RSA_meth_set_verify()
266 int RSA_meth_set_keygen(RSA_METHOD *meth, in RSA_meth_set_keygen()
[all …]
Drsa_ossl.c69 unsigned char *to, RSA *rsa, int padding) in rsa_ossl_public_encrypt()
157 static BN_BLINDING *rsa_get_blinding(RSA *rsa, int *local, BN_CTX *ctx) in rsa_get_blinding()
234 unsigned char *to, RSA *rsa, int padding) in rsa_ossl_private_encrypt()
368 unsigned char *to, RSA *rsa, int padding) in rsa_ossl_private_decrypt()
512 unsigned char *to, RSA *rsa, int padding) in rsa_ossl_public_decrypt()
606 static int rsa_ossl_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) in rsa_ossl_mod_exp()
966 static int rsa_ossl_init(RSA *rsa) in rsa_ossl_init()
972 static int rsa_ossl_finish(RSA *rsa) in rsa_ossl_finish()
Drsa_pss.c25 int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash, in RSA_verify_PKCS1_PSS()
32 int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash, in RSA_verify_PKCS1_PSS_mgf1()
138 int RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM, in RSA_padding_add_PKCS1_PSS()
145 int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM, in RSA_padding_add_PKCS1_PSS_mgf1()
Drsa_gen.c32 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) in RSA_generate_key_ex()
41 int RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes, in RSA_generate_multi_prime_key()
64 static int rsa_builtin_keygen(RSA *rsa, int bits, int primes, BIGNUM *e_value, in rsa_builtin_keygen()
Drsa_sign.c70 unsigned char *sigret, unsigned int *siglen, RSA *rsa) in RSA_sign()
126 const unsigned char *sigbuf, size_t siglen, RSA *rsa) in int_rsa_verify()
240 const unsigned char *sigbuf, unsigned int siglen, RSA *rsa) in RSA_verify()
Drsa_saos.c20 RSA *rsa) in RSA_sign_ASN1_OCTET_STRING()
57 unsigned int siglen, RSA *rsa) in RSA_verify_ASN1_OCTET_STRING()
Drsa_x931g.c19 int RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1, in RSA_X931_derive_ex()
144 int RSA_X931_generate_key_ex(RSA *rsa, int bits, const BIGNUM *e, in RSA_X931_generate_key_ex()
Drsa_pmeth.c130 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_sign() local
246 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_verify() local
702 static int rsa_set_pss_param(RSA *rsa, EVP_PKEY_CTX *ctx) in rsa_set_pss_param()
720 RSA *rsa = NULL; in pkey_rsa_keygen() local
799 RSA *rsa; in pkey_pss_init() local
Drsa_asn1.c118 RSA *RSAPrivateKey_dup(RSA *rsa) in RSAPrivateKey_dup()
/third_party/boringssl/src/crypto/rsa_extra/
Drsa_test.cc468 bssl::UniquePtr<RSA> rsa( in TEST() local
483 bssl::UniquePtr<RSA> rsa( in TEST() local
496 bssl::UniquePtr<RSA> rsa(RSA_new()); in TEST() local
590 bssl::UniquePtr<RSA> rsa( in TEST() local
634 bssl::UniquePtr<RSA> rsa( in TEST() local
642 bssl::UniquePtr<RSA> rsa(RSA_new()); in TEST() local
660 bssl::UniquePtr<RSA> rsa(RSA_new()); in TEST() local
682 bssl::UniquePtr<RSA> rsa( in TEST() local
761 bssl::UniquePtr<RSA> rsa(RSA_new()); in TEST() local
906 bssl::UniquePtr<RSA> rsa(RSA_new()); in TEST() local
[all …]
Drsa_asn1.c127 int RSA_marshal_public_key(CBB *cbb, const RSA *rsa) { in RSA_marshal_public_key()
140 const RSA *rsa) { in RSA_public_key_to_bytes()
216 int RSA_marshal_private_key(CBB *cbb, const RSA *rsa) { in RSA_marshal_private_key()
236 const RSA *rsa) { in RSA_private_key_to_bytes()
305 RSA *RSAPublicKey_dup(const RSA *rsa) { in RSAPublicKey_dup()
316 RSA *RSAPrivateKey_dup(const RSA *rsa) { in RSAPrivateKey_dup()
Drsa_print.c15 int RSA_print(BIO *bio, const RSA *rsa, int indent) { in RSA_print()
/third_party/boringssl/src/decrepit/rsa/
Drsa_decrepit.c69 RSA *rsa = RSA_new(); in RSA_generate_key() local
88 int RSA_padding_add_PKCS1_PSS(const RSA *rsa, uint8_t *EM, const uint8_t *mHash, in RSA_padding_add_PKCS1_PSS()
93 int RSA_verify_PKCS1_PSS(const RSA *rsa, const uint8_t *mHash, in RSA_verify_PKCS1_PSS()
/third_party/openssl/crypto/x509/
Dx_all.c200 RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa) in d2i_RSAPrivateKey_fp()
205 int i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa) in i2d_RSAPrivateKey_fp()
210 RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa) in d2i_RSAPublicKey_fp()
215 RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa) in d2i_RSA_PUBKEY_fp()
222 int i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa) in i2d_RSAPublicKey_fp()
227 int i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa) in i2d_RSA_PUBKEY_fp()
233 RSA *d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) in d2i_RSAPrivateKey_bio()
238 int i2d_RSAPrivateKey_bio(BIO *bp, RSA *rsa) in i2d_RSAPrivateKey_bio()
243 RSA *d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa) in d2i_RSAPublicKey_bio()
248 RSA *d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa) in d2i_RSA_PUBKEY_bio()
[all …]
/third_party/uboot/u-boot-2020.01/lib/rsa/
Drsa-sign.c61 RSA *rsa; in rsa_pem_get_pub_key() local
128 RSA *rsa; in rsa_engine_get_pub_key() local
209 RSA *rsa; in rsa_pem_get_priv_key() local
248 RSA *rsa; in rsa_engine_get_priv_key() local
408 static int rsa_sign_with_key(RSA *rsa, struct padding_algo *padding_algo, in rsa_sign_with_key()
511 RSA *rsa; in rsa_sign() local
745 RSA *rsa; in rsa_add_verify_data() local
/third_party/boringssl/src/crypto/evp/
Dp_rsa.c175 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_sign() local
214 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_verify() local
247 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_verify_recover() local
311 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_encrypt() local
343 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_decrypt() local
521 RSA *rsa = NULL; in pkey_rsa_keygen() local
Dp_rsa_asn1.c100 RSA *rsa = RSA_parse_public_key(key); in rsa_pub_decode() local
144 RSA *rsa = RSA_parse_private_key(key); in rsa_priv_decode() local
/third_party/openssl/engines/
De_dasync.c510 unsigned char *to, RSA *rsa, int padding) { in dasync_pub_enc()
518 unsigned char *to, RSA *rsa, int padding) { in dasync_pub_dec()
526 unsigned char *to, RSA *rsa, int padding) in dasync_rsa_priv_enc()
535 unsigned char *to, RSA *rsa, int padding) in dasync_rsa_priv_dec()
543 static int dasync_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) in dasync_rsa_mod_exp()
550 static int dasync_rsa_init(RSA *rsa) in dasync_rsa_init()
554 static int dasync_rsa_finish(RSA *rsa) in dasync_rsa_finish()
/third_party/jsframework/runtime/main/extend/systemplugin/napi/
Dsystem_cipher.js20 rsa: function (...args) { method
/third_party/boringssl/src/crypto/pem/
Dpem_test.cc39 bssl::UniquePtr<RSA> rsa(PEM_read_bio_RSAPublicKey( in TEST() local
/third_party/boringssl/src/tool/
Dgenrsa.cc48 bssl::UniquePtr<RSA> rsa(RSA_new()); in GenerateRSAKey() local
/third_party/mbedtls/programs/pkey/
Dkey_app.c228 mbedtls_rsa_context *rsa = mbedtls_pk_rsa( pk ); in main() local
286 mbedtls_rsa_context *rsa = mbedtls_pk_rsa( pk ); in main() local

1234