Project

General

Profile

SignedInterest » History » Version 5

Yingdi Yu, 05/25/2015 01:41 PM

1 1 Yingdi Yu
Signed Interest
2
===============
3
4
**Signed Interest** is a mechanism to issue an authenticated interest.
5
6
The signature of a signed Interest packet is embedded into the last component of the Interest name.
7
The signature covers a continuous block starting from the first name component TLV to the penultimate name component TLV:
8
9
    +-------------+----------+-----------------------------------------------------------------------------------+
10
    |  Interest   | Interest | +------+--------+--------------------------------------------------+ +----------+ |
11
    | Type (0x01) |  length  | | Name |  Name  | +---------+--   --+---------+---------+---------+| | Other    | |
12
    |             |          | | Type | Length | |Component|  ...  |Component|Component|Component|| | TLVs ... | |
13
    |             |          | |      |        | |  TLV 1  |       | TLV n-2 | TLV n-1 |  TLV n  || | in       | |
14
    |             |          | |      |        | +---------+--   --+---------+---------+---------+| | Interest | |
15
    |             |          | +------+--------+--------------------------------------------------+ +----------+ |
16
    +-------------+----------+-----------------------------------------------------------------------------------+
17
18
                                                 \                                    /\        /
19
                                                  ----------------  ------------------  ---  ---
20
                                                                  \/                       \/
21
                                                       Signed portion of Interest       Signature
22
23
24 5 Yingdi Yu
More specifically, the SignedInterest is defined to have two additional components:
25 1 Yingdi Yu
26
* ``<SignatureInfo>``
27
* ``<SignatureValue>``
28
29 5 Yingdi Yu
For example, for ``/signed/interest/name`` name, SignedInterest will be defined as:
30 1 Yingdi Yu
 
31 5 Yingdi Yu
     /signed/interest/name/<SignatureInfo>/<SignatureValue>
32 1 Yingdi Yu
33 5 Yingdi Yu
                          \                              /
34
                           --------------  --------------
35
                                         \/
36
                      Additional components of Signed Interest
37 1 Yingdi Yu
38
## Signed Interest specific Name components
39
40
### SignatureInfo component (n-1 *th*)
41
42
The value of the n-1 *th* component is actually a [SignatureInfo](http://named-data.net/doc/ndn-tlv/signature.html) TLV.
43
44
    +---------+---------+-------------------+
45
    |Component|Component| +---------------+ |
46
    |   Type  |  Length | | SignatureInfo | |
47
    |         |         | |      TLV      | |
48
    |         |         | +---------------+ |
49
    +---------+---------+-------------------+
50
    
51
    |                                       |
52
    |<---------The n-1 th Component-------->|
53
54
### SignatureValue component (n *th*)
55
56
The value of the n *th* component is actually a [SignatureValue](http://named-data.net/doc/ndn-tlv/signature.html) TLV.
57
58
    +---------+---------+--------------------+
59
    |Component|Component| +----------------+ |
60
    |   Type  |  Length | | SignatureValue | |
61
    |         |         | |      TLV       | |
62
    |         |         | +----------------+ |
63
    +---------+---------+--------------------+
64
    
65
    |                                        |
66
    |<----------The n th Component---------->|
67
68
69
## Signed Interest Processing
70
71 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).
72
73
## Use of Signed Interest
74
75
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.