Project

General

Profile

SignatureType » History » Revision 4

Revision 3 (Davide Pesavento, 06/18/2020 06:23 PM) → Revision 4/7 (Davide Pesavento, 06/19/2020 01:06 PM)

# SignatureType 

 The following table defines the currently assigned values for the SignatureType element in NDN Interest and Data packets. 

 SignatureType              | Value (dec) | Description | Reference 
 -------------------------|-------------|-------------|---------- 
 DigestSha256               |    0            | Integrity protection using a SHA-256 digest | [DigestSha256](https://named-data.net/doc/NDN-packet-spec/current/signature.html#digestsha256) 
 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) 
 *(reserved)*               |    2            | Reserved for future assignments | 
 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) 
 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) 
 *(reserved)*               | 5-199         | Reserved for future assignments | 
 Null                       |    200          | Empty signature for testing and experimentation | [[NullSignature]] see below 


 ## Null Signature 

 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. 
 A `KeyLocator` element SHOULD NOT be used with this type of signature; if present, it MUST be ignored. 

     SignatureValue = SIGNATURE-VALUE-TYPE 
                      TLV-LENGTH ; == 0 

     InterestSignatureValue = INTEREST-SIGNATURE-VALUE-TYPE 
                              TLV-LENGTH ; == 0 


 ## References 

 https://named-data.net/doc/NDN-packet-spec/current/signature.html#signaturetype