def newDerOctetString(binstring):
 if isinstance(binstring, DerObject):
  der = DerOctetString(binstring.encode())
 else:
  der = DerOctetString(binstring)
 return der

def newDerOctetString ( binstring ) : if isinstance ( binstring , DerObject ) : der = DerOctetString ( binstring . encode ( ) ) else : der = DerOctetString ( binstring ) return der
create a deroctetstring object .