Home
last modified time | relevance | path

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

/net-tools-latest/mbedtls-2.4.0/library/
Dpk_wrap.c393 const mbedtls_rsa_alt_context *rsa_alt = (const mbedtls_rsa_alt_context *) ctx; in rsa_alt_get_bitlen() local
395 return( 8 * rsa_alt->key_len_func( rsa_alt->key ) ); in rsa_alt_get_bitlen()
403 mbedtls_rsa_alt_context *rsa_alt = (mbedtls_rsa_alt_context *) ctx; in rsa_alt_sign_wrap() local
405 *sig_len = rsa_alt->key_len_func( rsa_alt->key ); in rsa_alt_sign_wrap()
407 return( rsa_alt->sign_func( rsa_alt->key, f_rng, p_rng, MBEDTLS_RSA_PRIVATE, in rsa_alt_sign_wrap()
416 mbedtls_rsa_alt_context *rsa_alt = (mbedtls_rsa_alt_context *) ctx; in rsa_alt_decrypt_wrap() local
421 if( ilen != rsa_alt->key_len_func( rsa_alt->key ) ) in rsa_alt_decrypt_wrap()
424 return( rsa_alt->decrypt_func( rsa_alt->key, in rsa_alt_decrypt_wrap()
Dpk.c123 mbedtls_rsa_alt_context *rsa_alt; in mbedtls_pk_setup_rsa_alt() local
134 rsa_alt = (mbedtls_rsa_alt_context *) ctx->pk_ctx; in mbedtls_pk_setup_rsa_alt()
136 rsa_alt->key = key; in mbedtls_pk_setup_rsa_alt()
137 rsa_alt->decrypt_func = decrypt_func; in mbedtls_pk_setup_rsa_alt()
138 rsa_alt->sign_func = sign_func; in mbedtls_pk_setup_rsa_alt()
139 rsa_alt->key_len_func = key_len_func; in mbedtls_pk_setup_rsa_alt()
/net-tools-latest/mbedtls-2.4.0/tests/suites/
Dtest_suite_pk.function421 * An rsa_alt context can only do private operations (decrypt, sign).