asn1_encode_typed_data
retval = asn1_encode_typed_data(buf,val[i],&length);
asn1_error_code asn1_encode_typed_data