5.1. GetTagBytestoWrite This function returns the number of bytes taken by the Tag of the ASN object. It Scans through the BER/DER encoded String and finds the no of bytes taken by the Tag of a given ASN.1 Object. 5.2. GetLenBytestoWrite This function returns the no of Octets taken by the Length field of a given ASN.1 Object. It Scans through the BER/DER encoded String and finds the no of bytes taken by the Length field of a given ASN.1 Object. ..