Project

General

Profile

Actions

Task #4653

open

Should the new code be hard-wired to AES_CBC?

Added by Anonymous almost 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
07/06/2018
Due date:
% Done:

0%

Estimated time:

Description

The new code seems to be hard-wired to AES_CBC:
https://github.com/named-data/name-based-access-control/blob/ff3ee9f2af0303028b6f5a840f1e5641b3982ac1/src/decryptor.cpp#L259

Decryptor::doDecrypt(...)
{
  ...
  security::transform::bufferSource(content.getPayload().value(), content.getPayload().value_size())
    >> security::transform::blockCipher(BlockCipherAlgorithm::AES_CBC,
}

Can the new code handle multiple algorithms? (The original version of EncryptedContent had an EncryptionAlgorithm.)

Actions

Also available in: Atom PDF