Lines Matching refs:len
104 if( ( ret = mbedtls_asn1_get_len( p, end, &serial->len ) ) != 0 ) in mbedtls_x509_get_serial()
108 *p += serial->len; in mbedtls_x509_get_serial()
160 size_t len; in x509_get_hash_alg() local
168 end = p + alg->len; in x509_get_hash_alg()
177 if( ( ret = mbedtls_asn1_get_tag( &p, end, &md_oid.len, MBEDTLS_ASN1_OID ) ) != 0 ) in x509_get_hash_alg()
181 p += md_oid.len; in x509_get_hash_alg()
191 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, MBEDTLS_ASN1_NULL ) ) != 0 || len != 0 ) in x509_get_hash_alg()
220 size_t len; in mbedtls_x509_get_rsassa_pss_params() local
234 end = p + params->len; in mbedtls_x509_get_rsassa_pss_params()
242 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_get_rsassa_pss_params()
245 end2 = p + len; in mbedtls_x509_get_rsassa_pss_params()
267 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_get_rsassa_pss_params()
270 end2 = p + len; in mbedtls_x509_get_rsassa_pss_params()
298 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_get_rsassa_pss_params()
301 end2 = p + len; in mbedtls_x509_get_rsassa_pss_params()
319 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_get_rsassa_pss_params()
324 end2 = p + len; in mbedtls_x509_get_rsassa_pss_params()
361 size_t len; in x509_get_attr_type_value() local
365 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_attr_type_value()
376 if( ( ret = mbedtls_asn1_get_tag( p, end, &oid->len, MBEDTLS_ASN1_OID ) ) != 0 ) in x509_get_attr_type_value()
380 *p += oid->len; in x509_get_attr_type_value()
396 if( ( ret = mbedtls_asn1_get_len( p, end, &val->len ) ) != 0 ) in x509_get_attr_type_value()
400 *p += val->len; in x509_get_attr_type_value()
529 size_t len; in mbedtls_x509_get_time() local
541 ret = mbedtls_asn1_get_len( p, end, &len ); in mbedtls_x509_get_time()
551 if( len > 10 ) in mbedtls_x509_get_time()
553 if( len > 12 && *(*p)++ != 'Z' ) in mbedtls_x509_get_time()
566 ret = mbedtls_asn1_get_len( p, end, &len ); in mbedtls_x509_get_time()
576 if( len > 12 ) in mbedtls_x509_get_time()
578 if( len > 14 && *(*p)++ != 'Z' ) in mbedtls_x509_get_time()
593 size_t len; in mbedtls_x509_get_sig() local
602 if( ( ret = mbedtls_asn1_get_bitstring_null( p, end, &len ) ) != 0 ) in mbedtls_x509_get_sig()
606 sig->len = len; in mbedtls_x509_get_sig()
609 *p += len; in mbedtls_x509_get_sig()
655 sig_params->len != 0 ) in mbedtls_x509_get_sig_alg()
670 size_t len; in mbedtls_x509_get_ext() local
677 if( ( ret = mbedtls_asn1_get_tag( p, end, &ext->len, in mbedtls_x509_get_ext()
682 end = *p + ext->len; in mbedtls_x509_get_ext()
692 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in mbedtls_x509_get_ext()
696 if( end != *p + len ) in mbedtls_x509_get_ext()
744 for( i = 0; i < name->val.len; i++ ) in mbedtls_x509_dn_gets()
778 nr = ( serial->len <= 32 ) in mbedtls_x509_serial_gets()
779 ? serial->len : 28; in mbedtls_x509_serial_gets()
791 if( nr != serial->len ) in mbedtls_x509_serial_gets()