Project

General

Profile

SignatureType » History » Version 3

Davide Pesavento, 06/18/2020 06:23 PM

1 1 Davide Pesavento
# SignatureType
2
3
The following table defines the currently assigned values for the SignatureType element in NDN Interest and Data packets.
4
5 2 Davide Pesavento
SignatureType            | Value (dec) | Description | Reference
6
-------------------------|-------------|-------------|----------
7
DigestSha256             |  0          | Integrity protection using a SHA-256 digest | [DigestSha256](https://named-data.net/doc/NDN-packet-spec/current/signature.html#digestsha256)
8
SignatureSha256WithRsa   |  1          | Integrity and provenance protection using an RSA signature over a SHA-256 digest | [SignatureSha256WithRsa](https://named-data.net/doc/NDN-packet-spec/current/signature.html#signaturesha256withrsa)
9
*(reserved)*             |  2          | Reserved for future assignments |
10
SignatureSha256WithEcdsa |  3          | Integrity and provenance protection using an ECDSA signature over a SHA-256 digest | [SignatureSha256WithEcdsa](https://named-data.net/doc/NDN-packet-spec/current/signature.html#signaturesha256withecdsa)
11
SignatureHmacWithSha256  |  4          | Integrity and provenance protection using a SHA-256 hash-based message authentication code | [SignatureHmacWithSha256](https://named-data.net/doc/NDN-packet-spec/current/signature.html#signaturehmacwithsha256)
12 3 Davide Pesavento
*(reserved)*             | 5-199       | Reserved for future assignments |
13
Null                     |  200        | Empty signature for testing and experimentation | see below
14
15
16
## Null Signature
17
18
The **`Null`** signature type indicates that the packet is not signed and therefore does not offer any sort of integrity protection or authenticity guarantees. This signature type MUST NOT be used except in testing environments or for experimentation purposes.
19
A `KeyLocator` element SHOULD NOT be used with this type of signature; if present, it MUST be ignored.
20
21
    SignatureValue = SIGNATURE-VALUE-TYPE
22
                     TLV-LENGTH ; == 0
23
24
    InterestSignatureValue = INTEREST-SIGNATURE-VALUE-TYPE
25
                             TLV-LENGTH ; == 0
26
27 1 Davide Pesavento
28
## References
29
30
https://named-data.net/doc/NDN-packet-spec/current/signature.html#signaturetype