function encodeEncMethod() was redefined

Signed-off-by: Bleska <blecha.jiri@gmail.com>