encrypt: add get_symmetric_algorithm 99/65599/7
authorMateusz Kulikowski <m.kulikowski@samsung.com>
Mon, 11 Apr 2016 13:31:50 +0000 (15:31 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Thu, 14 Apr 2016 15:05:25 +0000 (17:05 +0200)
commit9b3d768ceec9e8f051f6f140361a82c231b6a063
tree12051069d6001b668bc4e88e2c642a3224a4b4ed
parentc06a90476453190abfe4b143094c91719a0ce9e0
encrypt: add get_symmetric_algorithm

Implement function to map yaca algorithm enums to EVP_CIPHER.

It is currently not very fast, and doesn't handle all algorithms/modes
supported by yaca.

Change-Id: I34c9a78044561b7fdcdc9e23632e45ff745e7f34
Signed-off-by: Mateusz Kulikowski <m.kulikowski@samsung.com>
src/encrypt.c