[Ndn-interest] Using AES Block Cipher

Zhiyi Zhang Zhiyi.Zhang at ucla.edu
Fri Mar 15 12:21:42 PDT 2019


On Thu, Mar 14, 2019 at 12:44 AM Htet Htet Hlaing via Ndn-interest <
ndn-interest at lists.cs.ucla.edu> wrote:

> Hello,
>
> I am trying to encrypt name and data using;
>  *security::transform::bufferSource ( )*
> as shown in:
>
> https://github.com/named-data/ndn-cxx/blob/2c1d349bdb9a1f7b2a0b07ea11e6f24650bde6cd/tests/unit/security/transform/block-cipher.t.cpp
> <https://github.com/named-data/ndn-cxx/blob/2c1d349bdb9a1f7b2a0b07ea11e6f24650bde6cd/tests/unit/security/transform/block-cipher.t.cpp?fbclid=IwAR0-VKVoVoTMVLNl9SO6JynDmz3l_-7OJMTqCa_9DqFbER-qMJE3dw3J0j8>
>
> So, I have two questions.
> 1) How can I pass name to AES_CBC which only accepts array?
>

You can encrypt the buffer first and set the ciphertext as the name
component.
I am afraid that you can not encrypt the whole name at once without
breaking name component’s TLV structure.

2) When I am trying to test AES_CBC decryption, NDN throw;
>  *Error: Error in module 1: Failed to flush*
> How should I fix that error?
>
> Best Regards.
> Htet
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20190315/3364ec6a/attachment.html>


More information about the Ndn-interest mailing list