Project

General

Profile

Actions

Task #2750

closed

Create TLV format for encrypted content

Added by Yingdi Yu about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Start date:
04/15/2015
Due date:
% Done:

100%

Estimated time:

Description

The encrypted content is defined as:

Content              ::= CONTENT-TYPE TLV-LENGTH
                         EncryptedContent
EncryptedContent     ::= ENCRYPTED-CONTENT-TYPE TLV-LENGTH
                         EncryptionKeyLocator
                         EncryptionAlgorithm
                         EncryptedPayLoad
EncryptionKeyLocator ::= ENCRYPTION-KEY-LOCATOR-TYPE TLV-LENGTH
                         Name // name of encrypting key
EncryptionAlgorithm  ::= ENCRYPTION-ALOGRITHM-TYPE TLV-LENGTH
                         nonNegativeInteger // algorithm id
EncryptedPayLoad     ::= ENCRYPTED-PAYLOAD-TYPE TLV-LENGTH 
                         BYTE+

To implement the abstraction, please take the signature-info TLV implementation as an example.

Signature-info TLV definition:

Signature-info TLV encode/decoding implementation:

Actions #1

Updated by Yingdi Yu about 9 years ago

  • Assignee set to Prashanth Swaminathan
Actions #2

Updated by Yingdi Yu almost 9 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Anonymous almost 9 years ago

In the spec above, EncryptionKeyLocator just has a Name. But in ndn-group-encrypt the EncryptedContent class has a full KeyLocator as the m_keyLocator. Should it just be a Name?
https://github.com/named-data/ndn-group-encrypt/blob/c0029b603871ab4147b89d2df79a33242c77b22f/src/encrypted-content.hpp#L83

Actions #4

Updated by Anonymous almost 9 years ago

... or when encoding the KeyLocator, should it be restricted to KeyLocator_Name and not KeyLocator_KeyDigest?
https://github.com/named-data/ndn-group-encrypt/blob/c0029b603871ab4147b89d2df79a33242c77b22f/src/encrypted-content.cpp#L86

Actions

Also available in: Atom PDF