Task #2750
closedCreate TLV format for encrypted content
100%
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:
Updated by Yingdi Yu almost 9 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
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
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