Lines Matching refs:keys
23 import imgtool.keys as keys namespace
33 from .keys import (
50 keys.RSA.generate().export_private(path=keyfile, passwd=passwd)
54 keys.RSA.generate(key_size=3072).export_private(path=keyfile,
59 keys.ECDSA256P1.generate().export_private(keyfile, passwd=passwd)
63 keys.ECDSA384P1.generate().export_private(keyfile, passwd=passwd)
67 keys.Ed25519.generate().export_private(path=keyfile, passwd=passwd)
71 keys.X25519.generate().export_private(path=keyfile, passwd=passwd)
103 key = keys.load(keyfile)
107 return keys.load(keyfile, passwd)
126 type=click.Choice(keygens.keys()), prompt=True,
127 help='{}'.format('One of: {}'.format(', '.join(keygens.keys()))))
471 if ((isinstance(key, keys.ECDSA256P1) and
472 not isinstance(enckey, keys.ECDSA256P1Public))
473 or (isinstance(key, keys.ECDSA384P1) and
474 not isinstance(enckey, keys.ECDSA384P1Public))
475 or (isinstance(key, keys.RSA) and
476 not isinstance(enckey, keys.RSAPublic))):