Skip to content

Key URI Specification v1 #4

Description

@jht5945

URL: https://ows.hatter.in/rfc4

Key URI format:

key://<name>:<type>/<algorithm>:<usage>:<key-material>
Key Comments
<name> Key name/host
<type> Enums se, piv, soft, external_command
<algorithm> Enums rsa1024, rsa2048, rsa3072, rsa4096, p256, p384, p521
<usage> Enums (empty), *(Any), signing , key_agreement
<key-material> string, may encrypted with HMAC or PBE

HMAC encryption:

hmac_enc:<hmac-nonce>:<aes-gcm-nonce>:<ciphertext>

HMAC encryption use YubiKey derive encryption key, <aes-key> = SHA256(HMAC_SHA1(YubiKey, <hmac-nonce>))

PBE encryption:

pbe_enc:<iteration>:<pbe-salt>:<aes-gcm-nonce>:<ciphertext>

PBE encryption use Simple PBE KDF

Samples:

key://yubikey4-5010220:piv/p256::r1
key://macbook:se/p256:signing:BIIBQDGCATwwgfU******
key://yubikey4-5010220:soft/p256::hmac_enc:oU7d7qT0BOJb_1FOxr5-Rg:KDEY7gWme3CXldlcCg7WGg:YbdugT*****

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions