<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 14, 2019 at 12:44 AM Htet Htet Hlaing via Ndn-interest <<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I am trying to encrypt name and data using;<br></div><div><font size="2"> <i>security::transform::bufferSource ( )</i></font></div><div>as shown in:<br></div><div>
<span class="m_4413987931987432879gmail-_5yl5"><span><a href="https://github.com/named-data/ndn-cxx/blob/2c1d349bdb9a1f7b2a0b07ea11e6f24650bde6cd/tests/unit/security/transform/block-cipher.t.cpp?fbclid=IwAR0-VKVoVoTMVLNl9SO6JynDmz3l_-7OJMTqCa_9DqFbER-qMJE3dw3J0j8" rel="nofollow noopener" target="_blank">https://github.com/named-data/ndn-cxx/blob/2c1d349bdb9a1f7b2a0b07ea11e6f24650bde6cd/tests/unit/security/transform/block-cipher.t.cpp</a></span></span> <br></div><div><br></div><div>So, I have two questions.</div><div>1) How can I pass name to AES_CBC which only accepts array?</div></div></blockquote><div dir="auto"><br></div><div dir="auto">You can encrypt the buffer first and set the ciphertext as the name component.</div><div dir="auto">I am afraid that you can not encrypt the whole name at once without breaking name component’s TLV structure.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>2) When I am trying to test AES_CBC decryption, NDN throw;</div><div> <i>Error: Error in module 1: Failed to flush</i></div><div>How should I fix that error?</div><div><br></div><div>Best Regards.</div><div>Htet<br></div><div><i></i></div></div>
_______________________________________________<br>
Ndn-interest mailing list<br>
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank">Ndn-interest@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br>
</blockquote></div></div>