Home
last modified time | relevance | path

Searched refs:rsa_alt (Results 1 – 4 of 4) sorted by relevance

/third_party/mbedtls/library/
Dpk_wrap.c771 const mbedtls_rsa_alt_context *rsa_alt = (const mbedtls_rsa_alt_context *) ctx; in rsa_alt_get_bitlen() local
773 return( 8 * rsa_alt->key_len_func( rsa_alt->key ) ); in rsa_alt_get_bitlen()
781 mbedtls_rsa_alt_context *rsa_alt = (mbedtls_rsa_alt_context *) ctx; in rsa_alt_sign_wrap() local
788 *sig_len = rsa_alt->key_len_func( rsa_alt->key ); in rsa_alt_sign_wrap()
794 return( rsa_alt->sign_func( rsa_alt->key, f_rng, p_rng, in rsa_alt_sign_wrap()
803 mbedtls_rsa_alt_context *rsa_alt = (mbedtls_rsa_alt_context *) ctx; in rsa_alt_decrypt_wrap() local
808 if( ilen != rsa_alt->key_len_func( rsa_alt->key ) ) in rsa_alt_decrypt_wrap()
811 return( rsa_alt->decrypt_func( rsa_alt->key, in rsa_alt_decrypt_wrap()
Dpk.c194 mbedtls_rsa_alt_context *rsa_alt; in mbedtls_pk_setup_rsa_alt() local
206 rsa_alt = (mbedtls_rsa_alt_context *) ctx->pk_ctx; in mbedtls_pk_setup_rsa_alt()
208 rsa_alt->key = key; in mbedtls_pk_setup_rsa_alt()
209 rsa_alt->decrypt_func = decrypt_func; in mbedtls_pk_setup_rsa_alt()
210 rsa_alt->sign_func = sign_func; in mbedtls_pk_setup_rsa_alt()
211 rsa_alt->key_len_func = key_len_func; in mbedtls_pk_setup_rsa_alt()
/third_party/mbedtls/tests/suites/
Dtest_suite_x509write.function205 int ver, char *cert_check_file, int rsa_alt, int is_ca )
237 if( rsa_alt == 1 && mbedtls_pk_get_type( &issuer_key ) == MBEDTLS_PK_RSA )
248 (void) rsa_alt;
Dtest_suite_pk.function869 * An rsa_alt context can only do private operations (decrypt, sign).