PDA

View Full Version : Encrypting and decrypting with QCA



s.g.
5th December 2009, 12:28
I've never used QCA up to now, so this might be a silly question...
I've been browsing the documentation and I can't find the way to decrypt with QCA::MessageAuthenticationCode. There is an encryption example (http://delta.affinix.com/docs/qca/mactest_8cpp-example.html), but I don't see a decryption one...

olidem
6th December 2009, 21:41
Well,
do you know the difference between a message authentication code and pure encryption?

AFAIcan remeber, for a MAC, Alice creates the mac, gives it together with the message to Bob, and bob can then compute the mac again(if he has the key) and compare the computation result to the transmitted code.
I think it was in that way.

and encryption of messages means to not even give the pain message to bob. alice encrypts it message , gives this "crap" to bob, and bob can decrypt it (again ifhe knows the key).

For encryption and decryption, youll need a cipher, see
http://delta.affinix.com/docs/qca/ciphertest_8cpp-example.html