formats: remove magic byte

nistp521
Roman Zeyde 9 years ago
parent 0c21e33324
commit 00730069e7

@ -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)

Loading…
Cancel
Save