Lines Matching refs:pk
87 mbedtls_pk_context pk; in main() local
95 mbedtls_pk_init( &pk ); in main()
174 ret = mbedtls_pk_parse_keyfile( &pk, opt.filename, opt.password ); in main()
189 if( mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_RSA ) in main()
191 mbedtls_rsa_context *rsa = mbedtls_pk_rsa( pk ); in main()
204 if( mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_ECKEY ) in main()
206 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( pk ); in main()
227 ret = mbedtls_pk_parse_public_keyfile( &pk, opt.filename ); in main()
239 if( mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_RSA ) in main()
241 mbedtls_rsa_context *rsa = mbedtls_pk_rsa( pk ); in main()
248 if( mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_ECKEY ) in main()
250 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( pk ); in main()
272 mbedtls_pk_free( &pk ); in main()