Searched refs:rsa_alt (Results 1 – 4 of 4) sorted by relevance
771 const mbedtls_rsa_alt_context *rsa_alt = (const mbedtls_rsa_alt_context *) ctx; in rsa_alt_get_bitlen() local773 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() local788 *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() local808 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()
194 mbedtls_rsa_alt_context *rsa_alt; in mbedtls_pk_setup_rsa_alt() local206 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()
205 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;
869 * An rsa_alt context can only do private operations (decrypt, sign).