mirror of
https://github.com/romanz/amodem.git
synced 2026-03-18 07:36:02 +08:00
formats: remove magic byte
This commit is contained in:
@@ -76,7 +76,7 @@ def export_public_key(pubkey, label):
|
||||
hashfunc=hashfunc)
|
||||
key_type = 'ecdsa-sha2-nistp256'
|
||||
curve_name = 'nistp256'
|
||||
parts = [key_type, curve_name, '\x04' + vk.to_string()]
|
||||
parts = [key_type, curve_name, DER_OCTET_STRING + vk.to_string()]
|
||||
blob = ''.join([util.frame(p) for p in parts])
|
||||
log.debug('fingerprint: %s', fingerprint(blob))
|
||||
b64 = base64.b64encode(blob)
|
||||
|
||||
Reference in New Issue
Block a user