Lines Matching full:key
91 key = keys.load(keyfile)
92 if key is not None:
93 return key
94 passwd = getpass.getpass("Enter key passphrase: ").encode('utf-8')
100 passwd = getpass.getpass("Enter key passphrase: ")
112 help='Prompt for password to protect key')
116 @click.option('-k', '--key', metavar='filename', required=True)
118 def keygen(type, key, password): argument
120 keygens[type](key, password)
131 @click.option('-k', '--key', metavar='filename', required=True)
135 @click.command(help='Dump public key from keypair')
136 def getpub(key, encoding, lang, output): argument
144 key = load_key(key)
148 if key is None:
151 key.emit_c_public(file=output)
153 key.emit_rust_public(file=output)
155 key.emit_public_pem(file=output)
157 key.emit_raw_public(file=output)
168 @click.option('-k', '--key', metavar='filename', required=True)
172 @click.command(help='Dump the SHA256 hash of the public key')
173 def getpubhash(key, output, encoding): argument
176 key = load_key(key)
180 if key is None:
183 key.emit_c_public_hash(file=output)
185 key.emit_raw_public_hash(file=output)
191 help='Reduce the size of the dumped private key to include only '
195 @click.option('-k', '--key', metavar='filename', required=True)
200 @click.command(help='Dump private key from keypair')
201 def getpriv(key, minimal, format): argument
202 key = load_key(key)
203 if key is None:
206 key.emit_private(minimal, format)
213 @click.option('-k', '--key', metavar='filename')
214 @click.command(help="Check that signed image can be verified by given key")
215 def verify(key, imgfile): argument
216 key = load_key(key) if key else None
217 ret, version, digest = image.Image.verify(imgfile, key)
230 print("No signature found for the given key")
331 help='When upgrading, save encrypted key TLVs instead of plain '
335 help='Encrypt image using the provided public key. '
340 '256 bit key len.')
387 @click.option('--public-key-format', type=click.Choice(['hash', 'full']),
388 default='hash', help='In what format to add the public key to '
389 'the image manifest: full key or hash of the key.')
390 @click.option('-k', '--key', metavar='filename')
393 'the signature calculated using the public key')
395 help='public key relevant to fixed signature')
406 def sign(key, public_key_format, align, version, pad_sig, header_size, argument
425 key = load_key(key) if key else None
427 if enckey and key:
428 if ((isinstance(key, keys.ECDSA256P1) and
430 or (isinstance(key, keys.ECDSA384P1) and
432 or (isinstance(key, keys.RSA) and
436 "type of key")
438 if pad_sig and hasattr(key, 'pad_sig'):
439 key.pad_sig = True
468 'public key of the fixed signature is not specified')
476 img.create(key, public_key_format, enckey, dependencies, boot_record,