Searched refs:rsa_size (Results 1 – 2 of 2) sorted by relevance
/external/boringssl/src/crypto/fipsmodule/rsa/ |
D | rsa_impl.c | 260 const unsigned rsa_size = RSA_size(rsa); in RSA_encrypt() local 266 if (max_out < rsa_size) { in RSA_encrypt() 283 buf = OPENSSL_malloc(rsa_size); in RSA_encrypt() 291 i = RSA_padding_add_PKCS1_type_2(buf, rsa_size, in, in_len); in RSA_encrypt() 295 i = RSA_padding_add_PKCS1_OAEP_mgf1(buf, rsa_size, in, in_len, in RSA_encrypt() 299 i = RSA_padding_add_none(buf, rsa_size, in, in_len); in RSA_encrypt() 310 if (BN_bin2bn(buf, rsa_size, f) == NULL) { in RSA_encrypt() 327 if (!BN_bn2bin_padded(out, rsa_size, result)) { in RSA_encrypt() 332 *out_len = rsa_size; in RSA_encrypt() 458 const unsigned rsa_size = RSA_size(rsa); in rsa_default_sign_raw() local [all …]
|
D | rsa.c | 506 const unsigned rsa_size = RSA_size(rsa); in RSA_sign() local 519 !RSA_sign_raw(rsa, &size_t_out_len, out, rsa_size, signed_msg, in RSA_sign() 564 const size_t rsa_size = RSA_size(rsa); in RSA_verify() local 576 buf = OPENSSL_malloc(rsa_size); in RSA_verify() 582 if (!RSA_verify_raw(rsa, &len, buf, rsa_size, sig, sig_len, in RSA_verify()
|