lib-util: merge from s3 asn1.