August 19, 2011

SamFaye SamFaye
Lab Rat
59 posts

How to build a QCA:: seccureArray by passing it a parameter of type unsigned char *

 

I want to encrypt an unsigned char *, for that I must build a secureArray with this unsigned char *

how can I do?

2 replies

August 22, 2011

Volker Volker
Robot Herder
5428 posts

You can try:

  1. unsigned char * uCharArray;
  2. QCA::SecureArray::SecureArray secArray( static_cast<const char *>(uCharArray) );

But double check whether the conversion from unsigned to signed char does any harm!

August 22, 2011

SamFaye SamFaye
Lab Rat
59 posts

Thanks Volker. I will test that next week. I am on leave

 
  ‹‹ Geometry, Layout and Policy: a good tutorial?      How to get Mouse Click event on QComboBox ››

You must log in to post a reply. Not a member yet? Register here!