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

Method from_values

pgpy/packet/fields.py:510–516  ·  view source on GitHub ↗
(cls, bitlen, pform, x, y=None)

Source from the content-addressed store, hash-verified

508
509 @classmethod
510 def from_values(cls, bitlen, pform, x, y=None):
511 ct = cls()
512 ct.bytelen = (bitlen + 7) // 8
513 ct.format = pform
514 ct.x = x
515 ct.y = y
516 return ct
517
518 def __len__(self):
519 """ Returns length of MPI encoded point """

Callers 4

_generateMethod · 0.80
_generateMethod · 0.80
_generateMethod · 0.80
encryptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected