Lines Matching refs:key
74 key = keys.load(keyfile)
75 if key is not None:
76 return key
101 def keygen(type, key, password): argument
103 keygens[type](key, password)
110 def getpub(key, lang): argument
111 key = load_key(key)
112 if key is None:
115 key.emit_c_public()
117 key.emit_rust_public()
129 def getpriv(key, minimal): argument
130 key = load_key(key)
131 if key is None:
134 key.emit_private(minimal)
143 def verify(key, imgfile): argument
144 key = load_key(key) if key else None
145 ret, version, digest = image.Image.verify(imgfile, key)
300 def sign(key, public_key_format, align, version, pad_sig, header_size, argument
318 key = load_key(key) if key else None
320 if enckey and key:
321 if ((isinstance(key, keys.ECDSA256P1) and
323 or (isinstance(key, keys.RSA) and
329 if pad_sig and hasattr(key, 'pad_sig'):
330 key.pad_sig = True
350 img.create(key, public_key_format, enckey, dependencies, boot_record,