Lines Matching full:key
2 ED25519 key management
19 def __init__(self, key): argument
20 self.key = key
26 raise Ed25519UsageError("Operation {} requires private key".format(name))
29 return self.key
32 # The key is embedded into MBUboot in "SubjectPublicKeyInfo" format
44 """Write the public key to the given file."""
62 k = self.key
63 if isinstance(self.key, ed25519.Ed25519PrivateKey):
64 k = self.key.public_key()
70 Wrapper around an ED25519 private key.
73 def __init__(self, key): argument
74 """key should be an instance of EllipticCurvePrivateKey"""
75 self.key = key
83 return self.key.public_key()
91 Write the private key to the given file, protecting it with the
98 pem = self.key.private_bytes(
107 return self.key.sign(data=digest)