Lines Matching refs:pk

580                         mbedtls_pk_context *pk )  in mbedtls_pk_parse_subpubkey()  argument
609 if( ( ret = mbedtls_pk_setup( pk, pk_info ) ) != 0 ) in mbedtls_pk_parse_subpubkey()
615 ret = pk_get_rsapubkey( p, end, mbedtls_pk_rsa( *pk ) ); in mbedtls_pk_parse_subpubkey()
621 ret = pk_use_ecparams( &alg_params, &mbedtls_pk_ec( *pk )->grp ); in mbedtls_pk_parse_subpubkey()
623 ret = pk_get_ecpubkey( p, end, mbedtls_pk_ec( *pk ) ); in mbedtls_pk_parse_subpubkey()
633 mbedtls_pk_free( pk ); in mbedtls_pk_parse_subpubkey()
849 mbedtls_pk_context *pk, in pk_parse_key_pkcs8_unencrypted_der() argument
904 if( ( ret = mbedtls_pk_setup( pk, pk_info ) ) != 0 ) in pk_parse_key_pkcs8_unencrypted_der()
910 if( ( ret = pk_parse_key_pkcs1_der( mbedtls_pk_rsa( *pk ), p, len ) ) != 0 ) in pk_parse_key_pkcs8_unencrypted_der()
912 mbedtls_pk_free( pk ); in pk_parse_key_pkcs8_unencrypted_der()
920 if( ( ret = pk_use_ecparams( &params, &mbedtls_pk_ec( *pk )->grp ) ) != 0 || in pk_parse_key_pkcs8_unencrypted_der()
921 ( ret = pk_parse_key_sec1_der( mbedtls_pk_ec( *pk ), p, len ) ) != 0 ) in pk_parse_key_pkcs8_unencrypted_der()
923 mbedtls_pk_free( pk ); in pk_parse_key_pkcs8_unencrypted_der()
938 mbedtls_pk_context *pk, in pk_parse_key_pkcs8_encrypted_der() argument
1052 return( pk_parse_key_pkcs8_unencrypted_der( pk, buf, len ) ); in pk_parse_key_pkcs8_encrypted_der()
1059 int mbedtls_pk_parse_key( mbedtls_pk_context *pk, in mbedtls_pk_parse_key() argument
1087 if( ( ret = mbedtls_pk_setup( pk, pk_info ) ) != 0 || in mbedtls_pk_parse_key()
1088 ( ret = pk_parse_key_pkcs1_der( mbedtls_pk_rsa( *pk ), in mbedtls_pk_parse_key()
1091 mbedtls_pk_free( pk ); in mbedtls_pk_parse_key()
1119 if( ( ret = mbedtls_pk_setup( pk, pk_info ) ) != 0 || in mbedtls_pk_parse_key()
1120 ( ret = pk_parse_key_sec1_der( mbedtls_pk_ec( *pk ), in mbedtls_pk_parse_key()
1123 mbedtls_pk_free( pk ); in mbedtls_pk_parse_key()
1147 if( ( ret = pk_parse_key_pkcs8_unencrypted_der( pk, in mbedtls_pk_parse_key()
1150 mbedtls_pk_free( pk ); in mbedtls_pk_parse_key()
1170 if( ( ret = pk_parse_key_pkcs8_encrypted_der( pk, in mbedtls_pk_parse_key()
1174 mbedtls_pk_free( pk ); in mbedtls_pk_parse_key()
1197 if( ( ret = pk_parse_key_pkcs8_encrypted_der( pk, key, keylen, in mbedtls_pk_parse_key()
1203 mbedtls_pk_free( pk ); in mbedtls_pk_parse_key()
1211 if( ( ret = pk_parse_key_pkcs8_unencrypted_der( pk, key, keylen ) ) == 0 ) in mbedtls_pk_parse_key()
1214 mbedtls_pk_free( pk ); in mbedtls_pk_parse_key()
1220 if( ( ret = mbedtls_pk_setup( pk, pk_info ) ) != 0 || in mbedtls_pk_parse_key()
1221 ( ret = pk_parse_key_pkcs1_der( mbedtls_pk_rsa( *pk ), key, keylen ) ) == 0 ) in mbedtls_pk_parse_key()
1226 mbedtls_pk_free( pk ); in mbedtls_pk_parse_key()
1233 if( ( ret = mbedtls_pk_setup( pk, pk_info ) ) != 0 || in mbedtls_pk_parse_key()
1234 ( ret = pk_parse_key_sec1_der( mbedtls_pk_ec( *pk ), key, keylen ) ) == 0 ) in mbedtls_pk_parse_key()
1239 mbedtls_pk_free( pk ); in mbedtls_pk_parse_key()