MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / __copy__

Method __copy__

pgpy/packet/fields.py:937–948  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

935 return self.__bool__()
936
937 def __copy__(self):
938 s2k = String2Key()
939 s2k.usage = self.usage
940 s2k.encalg = self.encalg
941 s2k.specifier = self.specifier
942 s2k.gnuext = self.gnuext
943 s2k.iv = self.iv
944 s2k.halg = self.halg
945 s2k.salt = copy.copy(self.salt)
946 s2k.count = self._count
947 s2k.scserial = self.scserial
948 return s2k
949
950 def parse(self, packet, iv=True):
951 self.usage = packet[0]

Callers

nothing calls this directly

Calls 1

String2KeyClass · 0.85

Tested by

no test coverage detected