Option to select Algorithm to use

Change-Id: Ie0c6fe6015329a1a1714fbc637abeb730baaf4c8
Signed-off-by: Andrey Shamis <lolnik@gmail.com>