Add config to select what encryption mode to use

Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>