Project

General

Profile

Actions

Task #2750

closed

Create TLV format for encrypted content

Added by Yingdi Yu about 9 years ago. Updated about 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

Also available in: Atom PDF