Module tlv

Module tlv 

Source
Expand description

NDNCERT 0.3 TLV wire format.

Replaces the Phase 1A/1B JSON encoding with full NDN TLV for complete interoperability with the reference C++ implementation (ndncert-ca-server / ndncert-client).

§Type assignments (NDNCERT 0.3)

ca-prefix          0x81 (129)
ca-info            0x83 (131)
parameter-key      0x85 (133)
parameter-value    0x87 (135)
ca-certificate     0x89 (137)
max-validity       0x8B (139)
probe-response     0x8D (141)
max-suffix-length  0x8F (143)
ecdh-pub           0x91 (145)
cert-request       0x93 (147)
salt               0x95 (149)
request-id         0x97 (151)
challenge          0x99 (153)
status             0x9B (155)
iv                 0x9D (157)
encrypted-payload  0x9F (159)
selected-challenge 0xA1 (161)
challenge-status   0xA3 (163)
remaining-tries    0xA5 (165)
remaining-time     0xA7 (167)
issued-cert-name   0xA9 (169)
error-code         0xAB (171)
error-info         0xAD (173)
auth-tag           0xAF (175)

Structs§

CaProfileTlv
TLV-encoded CA profile (content of /<ca>/CA/INFO Data packet).
ChallengeRequestTlv
TLV-encoded CHALLENGE request (encrypted).
ChallengeResponseTlv
TLV-encoded CHALLENGE response.
NewRequestTlv
TLV-encoded NEW request (ApplicationParameters of /<ca>/CA/NEW).
NewResponseTlv
TLV-encoded NEW response.
ProbeResponseTlv
TLV-encoded PROBE response (content of /<ca>/CA/PROBE Data packet).
RevokeRequestTlv
TLV-encoded REVOKE request body (/<ca>/CA/REVOKE ApplicationParameters).
RevokeResponseTlv
TLV-encoded REVOKE response body.

Constants§

REVOKE_STATUS_NOT_FOUND
REVOKE_STATUS_REVOKED
REVOKE response status codes.
REVOKE_STATUS_UNAUTHORIZED
STATUS_BEFORE_CHALLENGE
Status codes per NDNCERT 0.3.
STATUS_CHALLENGE
STATUS_FAILURE
STATUS_PENDING
STATUS_SUCCESS
TLV_AUTH_TAG
TLV_CA_CERTIFICATE
TLV_CA_INFO
TLV_CA_PREFIX
TLV_CERT_REQUEST
TLV_CHALLENGE
TLV_CHALLENGE_STATUS
TLV_ECDH_PUB
TLV_ENCRYPTED_PAYLOAD
TLV_ERROR_CODE
TLV_ERROR_INFO
TLV_ISSUED_CERT_NAME
TLV_IV
TLV_MAX_SUFFIX_LENGTH
TLV_MAX_VALIDITY
TLV_PARAMETER_KEY
TLV_PARAMETER_VALUE
TLV_PROBE_RESPONSE
TLV_REMAINING_TIME
TLV_REMAINING_TRIES
TLV_REQUEST_ID
TLV_SALT
TLV_SELECTED_CHALLENGE
TLV_STATUS