Distinguished Encoding Rules (DER) implementation