def _encode(self, io): contents = [self.oid.encode()] if self.params: contents.append(self.params.encode()) else: contents.append(asn1.unparseNull()) io.write(asn1.unparseSequence(contents))
def _encode(self, io): contents = [self.digestAlgorithm.encode(), asn1.unparseOctetString(self.digest)] io.write(asn1.unparseSequence(contents))