gpg: use policy URI subpacket for marking our public keys

keybase.io does not support experimental/private subpacket IDs
This commit is contained in:
Roman Zeyde
2016-10-29 17:15:24 +03:00
parent 0342b39465
commit c7346d621d
2 changed files with 6 additions and 2 deletions

View File

@@ -167,7 +167,9 @@ SUPPORTED_CURVES = {
ECDH_ALGO_ID = 18
CUSTOM_SUBPACKET = subpacket(100, b'TREZOR-GPG') # marks "our" pubkey
CUSTOM_KEY_LABEL = b'TREZOR-GPG' # marks "our" pubkey
CUSTOM_SUBPACKET_ID = 26 # use "policy URL" subpacket
CUSTOM_SUBPACKET = subpacket(CUSTOM_SUBPACKET_ID, CUSTOM_KEY_LABEL)
def get_curve_name_by_oid(oid):