Project

General

Profile

SignedInterest » History » Version 6

Davide Pesavento, 07/03/2020 12:29 PM

1 1 Yingdi Yu
Signed Interest
2
===============
3
4 6 Davide Pesavento
[**DEPRECATED**: *This document describes a deprecated format for signed Interest packets. The current format can be found in the [NDN Packet Specification](https://named-data.net/doc/NDN-packet-spec/current/signed-interest.html).*]
5
6 1 Yingdi Yu
**Signed Interest** is a mechanism to issue an authenticated interest.
7
8
The signature of a signed Interest packet is embedded into the last component of the Interest name.
9
The signature covers a continuous block starting from the first name component TLV to the penultimate name component TLV:
10
11
    +-------------+----------+-----------------------------------------------------------------------------------+
12
    |  Interest   | Interest | +------+--------+--------------------------------------------------+ +----------+ |
13
    | Type (0x01) |  length  | | Name |  Name  | +---------+--   --+---------+---------+---------+| | Other    | |
14
    |             |          | | Type | Length | |Component|  ...  |Component|Component|Component|| | TLVs ... | |
15
    |             |          | |      |        | |  TLV 1  |       | TLV n-2 | TLV n-1 |  TLV n  || | in       | |
16
    |             |          | |      |        | +---------+--   --+---------+---------+---------+| | Interest | |
17
    |             |          | +------+--------+--------------------------------------------------+ +----------+ |
18
    +-------------+----------+-----------------------------------------------------------------------------------+
19
20
                                                 \                                    /\        /
21
                                                  ----------------  ------------------  ---  ---
22
                                                                  \/                       \/
23
                                                       Signed portion of Interest       Signature
24
25
26 5 Yingdi Yu
More specifically, the SignedInterest is defined to have two additional components:
27 1 Yingdi Yu
28
* ``<SignatureInfo>``
29
* ``<SignatureValue>``
30
31 5 Yingdi Yu
For example, for ``/signed/interest/name`` name, SignedInterest will be defined as:
32 1 Yingdi Yu
 
33 5 Yingdi Yu
     /signed/interest/name/<SignatureInfo>/<SignatureValue>
34 1 Yingdi Yu
35 5 Yingdi Yu
                          \                              /
36
                           --------------  --------------
37
                                         \/
38
                      Additional components of Signed Interest
39 1 Yingdi Yu
40
## Signed Interest specific Name components
41
42
### SignatureInfo component (n-1 *th*)
43
44
The value of the n-1 *th* component is actually a [SignatureInfo](http://named-data.net/doc/ndn-tlv/signature.html) TLV.
45
46
    +---------+---------+-------------------+
47
    |Component|Component| +---------------+ |
48
    |   Type  |  Length | | SignatureInfo | |
49
    |         |         | |      TLV      | |
50
    |         |         | +---------------+ |
51
    +---------+---------+-------------------+
52
    
53
    |                                       |
54
    |<---------The n-1 th Component-------->|
55
56
### SignatureValue component (n *th*)
57
58
The value of the n *th* component is actually a [SignatureValue](http://named-data.net/doc/ndn-tlv/signature.html) TLV.
59
60
    +---------+---------+--------------------+
61
    |Component|Component| +----------------+ |
62
    |   Type  |  Length | | SignatureValue | |
63
    |         |         | |      TLV       | |
64
    |         |         | +----------------+ |
65
    +---------+---------+--------------------+
66
    
67
    |                                        |
68
    |<----------The n th Component---------->|
69
70
71
## Signed Interest Processing
72
73 5 Yingdi Yu
Signed interest verification is simply signature verification. In other words, checking the wire encoding of the first n-1 name components against the value of the last name component (SignatureValue).
74
75
## Use of Signed Interest
76
77
Signed interest can be extended to handle control command. In this case, more name components (such as nonce and timestamp) need to be encoded before the SignatureInfo component to prevent replay attack.