Lines Matching refs:params

174                             mbedtls_asn1_buf *params )  in pk_get_ecparams()  argument
179 params->tag = **p; in pk_get_ecparams()
180 if( params->tag != MBEDTLS_ASN1_OID in pk_get_ecparams()
182 && params->tag != ( MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE ) in pk_get_ecparams()
190 if( ( ret = mbedtls_asn1_get_tag( p, end, &params->len, params->tag ) ) != 0 ) in pk_get_ecparams()
195 params->p = *p; in pk_get_ecparams()
196 *p += params->len; in pk_get_ecparams()
225 static int pk_group_from_specified( const mbedtls_asn1_buf *params, mbedtls_ecp_group *grp ) in pk_group_from_specified() argument
228 unsigned char *p = params->p; in pk_group_from_specified()
229 const unsigned char * const end = params->p + params->len; in pk_group_from_specified()
414 static int pk_group_id_from_specified( const mbedtls_asn1_buf *params, in pk_group_id_from_specified() argument
422 if( ( ret = pk_group_from_specified( params, &grp ) ) != 0 ) in pk_group_id_from_specified()
442 static int pk_use_ecparams( const mbedtls_asn1_buf *params, mbedtls_ecp_group *grp ) in pk_use_ecparams() argument
447 if( params->tag == MBEDTLS_ASN1_OID ) in pk_use_ecparams()
449 if( mbedtls_oid_get_ec_grp( params, &grp_id ) != 0 ) in pk_use_ecparams()
455 if( ( ret = pk_group_id_from_specified( params, &grp_id ) ) != 0 ) in pk_use_ecparams()
548 mbedtls_pk_type_t *pk_alg, mbedtls_asn1_buf *params ) in pk_get_pk_alg() argument
553 memset( params, 0, sizeof(mbedtls_asn1_buf) ); in pk_get_pk_alg()
555 if( ( ret = mbedtls_asn1_get_alg( p, end, &alg_oid, params ) ) != 0 ) in pk_get_pk_alg()
565 ( ( params->tag != MBEDTLS_ASN1_NULL && params->tag != 0 ) || in pk_get_pk_alg()
566 params->len != 0 ) ) in pk_get_pk_alg()
730 mbedtls_asn1_buf params; in pk_parse_key_sec1_der() local
779 if( ( ret = pk_get_ecparams( &p, p + len, &params) ) != 0 || in pk_parse_key_sec1_der()
780 ( ret = pk_use_ecparams( &params, &eck->grp ) ) != 0 ) in pk_parse_key_sec1_der()
855 mbedtls_asn1_buf params; in pk_parse_key_pkcs8_unencrypted_der() local
891 if( ( ret = pk_get_pk_alg( &p, end, &pk_alg, &params ) ) != 0 ) 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()