Home
last modified time | relevance | path

Searched refs:mbedtls_rsa_context (Results 1 – 25 of 25) sorted by relevance

/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/
Drsa.h111 mbedtls_rsa_context; typedef
137 void mbedtls_rsa_init( mbedtls_rsa_context *ctx,
149 void mbedtls_rsa_set_padding( mbedtls_rsa_context *ctx, int padding, int hash_id);
165 int mbedtls_rsa_gen_key( mbedtls_rsa_context *ctx,
177 int mbedtls_rsa_check_pubkey( const mbedtls_rsa_context *ctx );
186 int mbedtls_rsa_check_privkey( const mbedtls_rsa_context *ctx );
197 int mbedtls_rsa_check_pub_priv( const mbedtls_rsa_context *pub, const mbedtls_rsa_context *prv );
215 int mbedtls_rsa_public( mbedtls_rsa_context *ctx,
233 int mbedtls_rsa_private( mbedtls_rsa_context *ctx,
258 int mbedtls_rsa_pkcs1_encrypt( mbedtls_rsa_context *ctx,
[all …]
Dpk.h139 static inline mbedtls_rsa_context *mbedtls_pk_rsa( const mbedtls_pk_context pk ) in mbedtls_pk_rsa()
141 return( (mbedtls_rsa_context *) (pk).pk_ctx ); in mbedtls_pk_rsa()
Dcompat-1.3.h2284 #define rsa_context mbedtls_rsa_context
/net-tools-3.7.0/mbedtls-2.4.0/library/
Dpk_wrap.c68 return( 8 * ((const mbedtls_rsa_context *) ctx)->len ); in rsa_get_bitlen()
77 if( sig_len < ((mbedtls_rsa_context *) ctx)->len ) in rsa_verify_wrap()
80 if( ( ret = mbedtls_rsa_pkcs1_verify( (mbedtls_rsa_context *) ctx, NULL, NULL, in rsa_verify_wrap()
85 if( sig_len > ((mbedtls_rsa_context *) ctx)->len ) in rsa_verify_wrap()
96 *sig_len = ((mbedtls_rsa_context *) ctx)->len; in rsa_sign_wrap()
98 return( mbedtls_rsa_pkcs1_sign( (mbedtls_rsa_context *) ctx, f_rng, p_rng, MBEDTLS_RSA_PRIVATE, in rsa_sign_wrap()
107 if( ilen != ((mbedtls_rsa_context *) ctx)->len ) in rsa_decrypt_wrap()
110 return( mbedtls_rsa_pkcs1_decrypt( (mbedtls_rsa_context *) ctx, f_rng, p_rng, in rsa_decrypt_wrap()
119 *olen = ((mbedtls_rsa_context *) ctx)->len; in rsa_encrypt_wrap()
124 return( mbedtls_rsa_pkcs1_encrypt( (mbedtls_rsa_context *) ctx, in rsa_encrypt_wrap()
[all …]
Drsa.c67 void mbedtls_rsa_init( mbedtls_rsa_context *ctx, in mbedtls_rsa_init()
71 memset( ctx, 0, sizeof( mbedtls_rsa_context ) ); in mbedtls_rsa_init()
83 void mbedtls_rsa_set_padding( mbedtls_rsa_context *ctx, int padding, int hash_id ) in mbedtls_rsa_set_padding()
94 int mbedtls_rsa_gen_key( mbedtls_rsa_context *ctx, in mbedtls_rsa_gen_key()
173 int mbedtls_rsa_check_pubkey( const mbedtls_rsa_context *ctx ) in mbedtls_rsa_check_pubkey()
196 int mbedtls_rsa_check_privkey( const mbedtls_rsa_context *ctx ) in mbedtls_rsa_check_privkey()
258 int mbedtls_rsa_check_pub_priv( const mbedtls_rsa_context *pub, const mbedtls_rsa_context *prv ) in mbedtls_rsa_check_pub_priv()
278 int mbedtls_rsa_public( mbedtls_rsa_context *ctx, in mbedtls_rsa_public()
325 static int rsa_prepare_blinding( mbedtls_rsa_context *ctx, in rsa_prepare_blinding()
362 int mbedtls_rsa_private( mbedtls_rsa_context *ctx, in mbedtls_rsa_private()
[all …]
Dpkwrite.c65 mbedtls_rsa_context *rsa ) in pk_write_rsa_pubkey()
208 mbedtls_rsa_context *rsa = mbedtls_pk_rsa( *key ); in mbedtls_pk_write_key_der()
Dpkparse.c510 mbedtls_rsa_context *rsa ) in pk_get_rsapubkey()
642 static int pk_parse_key_pkcs1_der( mbedtls_rsa_context *rsa, in pk_parse_key_pkcs1_der()
/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_rsa.function28 mbedtls_rsa_context ctx;
86 mbedtls_rsa_context ctx;
125 mbedtls_rsa_context ctx;
196 mbedtls_rsa_context ctx;
246 mbedtls_rsa_context ctx;
287 mbedtls_rsa_context ctx;
325 mbedtls_rsa_context ctx;
379 mbedtls_rsa_context ctx, ctx2; /* Also test mbedtls_rsa_copy() while at it */
434 mbedtls_rsa_context ctx, ctx2; /* Also test mbedtls_rsa_copy() while at it */
509 mbedtls_rsa_context ctx;
[all …]
Dtest_suite_pkcs1_v21.function21 mbedtls_rsa_context ctx;
64 mbedtls_rsa_context ctx;
123 mbedtls_rsa_context ctx;
184 mbedtls_rsa_context ctx;
226 mbedtls_rsa_context ctx;
Dtest_suite_pk.function43 return( mbedtls_rsa_pkcs1_decrypt( (mbedtls_rsa_context *) ctx, NULL, NULL, mode, olen,
51 return( mbedtls_rsa_pkcs1_sign( (mbedtls_rsa_context *) ctx, f_rng, p_rng, mode,
56 return( ((const mbedtls_rsa_context *) ctx)->len );
124 mbedtls_rsa_context *rsa;
165 mbedtls_rsa_context *rsa;
290 mbedtls_rsa_context *rsa;
334 mbedtls_rsa_context *rsa;
425 mbedtls_rsa_context raw;
Dtest_suite_pkcs1_v15.function21 mbedtls_rsa_context ctx;
64 mbedtls_rsa_context ctx;
123 mbedtls_rsa_context ctx;
184 mbedtls_rsa_context ctx;
Dtest_suite_pkparse.function30 mbedtls_rsa_context *rsa;
55 mbedtls_rsa_context *rsa;
/net-tools-3.7.0/mbedtls-2.4.0/programs/pkey/
Dkey_app.c191 mbedtls_rsa_context *rsa = mbedtls_pk_rsa( pk ); in main()
241 mbedtls_rsa_context *rsa = mbedtls_pk_rsa( pk ); in main()
Drsa_verify.c59 mbedtls_rsa_context rsa; in main()
Dkey_app_writer.c302 mbedtls_rsa_context *rsa = mbedtls_pk_rsa( key ); in main()
355 mbedtls_rsa_context *rsa = mbedtls_pk_rsa( key ); in main()
Drsa_genkey.c65 mbedtls_rsa_context rsa; in main()
Drsa_sign.c60 mbedtls_rsa_context rsa; in main()
Drsa_encrypt.c66 mbedtls_rsa_context rsa; in main()
Drsa_decrypt.c66 mbedtls_rsa_context rsa; in main()
Ddh_client.c85 mbedtls_rsa_context rsa; in main()
Ddh_server.c85 mbedtls_rsa_context rsa; in main()
Dgen_key.c361 mbedtls_rsa_context *rsa = mbedtls_pk_rsa( key ); in main()
/net-tools-3.7.0/mbedtls-2.4.0/programs/test/
Dbenchmark.c645 mbedtls_rsa_context rsa; in main()
/net-tools-3.7.0/mbedtls-2.4.0/yotta/data/example-benchmark/
Dmain.cpp692 mbedtls_rsa_context *rsa; in benchmark()
/net-tools-3.7.0/mbedtls-2.4.0/scripts/data_files/
Drename-1.3-2.0.txt1827 rsa_context mbedtls_rsa_context