Add sign option to asymmetric encryption and fix a minor bug

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>