flexible asn1_attribute api