Home
last modified time | relevance | path

Searched refs:rsa_enc (Results 1 – 2 of 2) sorted by relevance

/third_party/uboot/u-boot-2020.01/product/cipher/v2/api/
Dree_mpi_rsa.c1083 static hi_s32 rsa_pub_enc_pad_init(rsa_padding_s *pad, const hi_cipher_rsa_pub_encrypt *rsa_enc, in rsa_pub_enc_pad_init() argument
1097 ret = rsa_get_attr(rsa_enc->scheme, rsa_enc->pub_key.n_len, pad); in rsa_pub_enc_pad_init()
1242 const hi_cipher_rsa_pub_encrypt *rsa_enc, hi_cipher_rsa_crypt *rsa_crypt) in hi_mpi_cipher_rsa_pub_encrypt() argument
1249 inlet_var_is_null_return(rsa_enc); in hi_mpi_cipher_rsa_pub_encrypt()
1256 ret = rsa_pub_enc_pad_init(&pad, rsa_enc, rsa_crypt, arr_em, sizeof(arr_em)); in hi_mpi_cipher_rsa_pub_encrypt()
1259 switch (rsa_enc->scheme) { in hi_mpi_cipher_rsa_pub_encrypt()
1268 hi_err_cipher("RSA padding mode error, mode = 0x%x.\n", rsa_enc->scheme); in hi_mpi_cipher_rsa_pub_encrypt()
1272 pad.key_bt = (hi_u8)(rsa_enc->scheme - HI_CIPHER_RSA_ENCRYPT_SCHEME_BLOCK_TYPE_0); in hi_mpi_cipher_rsa_pub_encrypt()
1289 hi_err_cipher("RSA padding mode error, mode = 0x%x.\n", rsa_enc->scheme); in hi_mpi_cipher_rsa_pub_encrypt()
1294 return rsa_public(&rsa_enc->pub_key, pad.out_data, rsa_crypt->out); in hi_mpi_cipher_rsa_pub_encrypt()
/third_party/openssl/ssl/
Dssl_lib.c3311 int rsa_enc, rsa_sign, dh_tmp, dsa_sign; in ssl_set_masks() local
3325 rsa_enc = pvalid[SSL_PKEY_RSA] & CERT_PKEY_VALID; in ssl_set_masks()
3336 dh_tmp, rsa_enc, rsa_sign, dsa_sign); in ssl_set_masks()
3354 if (rsa_enc) in ssl_set_masks()
3365 if (rsa_enc || rsa_sign || (ssl_has_cert(s, SSL_PKEY_RSA_PSS_SIGN) in ssl_set_masks()