mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
feat(core): remove hardcoded trezor key from cpace
This commit is contained in:
parent
797aec9e26
commit
ec956e0589
@ -29,8 +29,6 @@ class Cpace:
|
||||
pregenerator = sha_ctx.digest()[:32]
|
||||
generator = elligator2.map_to_curve25519(pregenerator)
|
||||
self.trezor_private_key = random.bytes(32)
|
||||
if __debug__:
|
||||
self.trezor_private_key = b"\xf8\xb9\xa1\x3a\xe1\x30\xb3\xe1\x5b\x8e\xd5\x80\x85\x4f\xfc\xaf\x63\x4d\x6b\x0a\x10\xfd\xe7\xba\xde\xfd\xc3\xd1\x8d\x1a\x83\xf5"
|
||||
self.trezor_public_key = curve25519.multiply(self.trezor_private_key, generator)
|
||||
self.shared_secret = curve25519.multiply(
|
||||
self.trezor_private_key, self.host_public_key
|
||||
|
Loading…
Reference in New Issue
Block a user