Lines Matching defs:ctx

71 static size_t rsa_get_bitlen( const void *ctx )  in rsa_get_bitlen()
77 static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg, in rsa_verify_wrap()
109 static int rsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in rsa_sign_wrap()
127 static int rsa_decrypt_wrap( void *ctx, in rsa_decrypt_wrap()
141 static int rsa_encrypt_wrap( void *ctx, in rsa_encrypt_wrap()
164 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_rsa_context ) ); in rsa_alloc_wrap() local
172 static void rsa_free_wrap( void *ctx ) in rsa_free_wrap()
178 static void rsa_debug( const void *ctx, mbedtls_pk_debug_item *items ) in rsa_debug()
226 static size_t eckey_get_bitlen( const void *ctx ) in eckey_get_bitlen()
242 static int eckey_verify_wrap( void *ctx, mbedtls_md_type_t md_alg, in eckey_verify_wrap()
259 static int eckey_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in eckey_sign_wrap()
307 void *ctx = mbedtls_calloc( 1, sizeof( eckey_restart_ctx ) ); in eckey_rs_alloc() local
319 static void eckey_rs_free( void *ctx ) in eckey_rs_free()
333 static int eckey_verify_rs_wrap( void *ctx, mbedtls_md_type_t md_alg, in eckey_verify_rs_wrap()
357 static int eckey_sign_rs_wrap( void *ctx, mbedtls_md_type_t md_alg, in eckey_sign_rs_wrap()
392 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecp_keypair ) ); in eckey_alloc_wrap() local
400 static void eckey_free_wrap( void *ctx ) in eckey_free_wrap()
406 static void eckey_debug( const void *ctx, mbedtls_pk_debug_item *items ) in eckey_debug()
543 mbedtls_ecdsa_context *ctx = ctx_arg; in ecdsa_verify_wrap() local
622 static int ecdsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg, in ecdsa_verify_wrap()
639 static int ecdsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in ecdsa_sign_wrap()
649 static int ecdsa_verify_rs_wrap( void *ctx, mbedtls_md_type_t md_alg, in ecdsa_verify_rs_wrap()
668 static int ecdsa_sign_rs_wrap( void *ctx, mbedtls_md_type_t md_alg, in ecdsa_sign_rs_wrap()
684 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecdsa_context ) ); in ecdsa_alloc_wrap() local
692 static void ecdsa_free_wrap( void *ctx ) in ecdsa_free_wrap()
701 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecdsa_restart_ctx ) ); in ecdsa_rs_alloc() local
709 static void ecdsa_rs_free( void *ctx ) in ecdsa_rs_free()
750 static size_t rsa_alt_get_bitlen( const void *ctx ) in rsa_alt_get_bitlen()
757 static int rsa_alt_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in rsa_alt_sign_wrap()
777 static int rsa_alt_decrypt_wrap( void *ctx, in rsa_alt_decrypt_wrap()
826 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_rsa_alt_context ) ); in rsa_alt_alloc_wrap() local
834 static void rsa_alt_free_wrap( void *ctx ) in rsa_alt_free_wrap()
873 void *ctx = mbedtls_calloc( 1, sizeof( psa_key_id_t ) ); in pk_opaque_alloc_wrap() local
880 static void pk_opaque_free_wrap( void *ctx ) in pk_opaque_free_wrap()
886 static size_t pk_opaque_get_bitlen( const void *ctx ) in pk_opaque_get_bitlen()
995 static int pk_opaque_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in pk_opaque_sign_wrap()