Home
last modified time | relevance | path

Searched refs:privkey_pem (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/scripts/
H A Du2f-setup-gen.py24 def write_setup_dir(dirpath: str, privkey_pem: bytes, cert_pem: bytes,
41 f.write(privkey_pem)
68 privkey_pem = privkey.private_bytes(encoding=Encoding.PEM,
73 return privkey_pem, pubkey_pem
76 def generate_certificate(privkey_pem: str, pubkey_pem: str) -> str:
88 privkey = crypto.load_privatekey(crypto.FILETYPE_PEM, privkey_pem)
136 privkey_pem, pubkey_pem = generate_ec_key_pair()
139 certificate_pem = generate_certificate(privkey_pem, pubkey_pem)
148 write_setup_dir(dirpath, privkey_pem, certificate_pem, entropy, counter)
/openbmc/qemu/hw/usb/
H A Du2f-emulated.c244 char cert_pem[4096], privkey_pem[2048]; in u2f_emulated_setup_vdev_manualy() local
254 ret = u2f_emulated_read(key->privkey, privkey_pem, sizeof(privkey_pem)); in u2f_emulated_setup_vdev_manualy()
273 setup_info.private_key = privkey_pem; in u2f_emulated_setup_vdev_manualy()