removed -S and -P, replaced by -K, keymgmt determines key type automatically
removed -S and -P, replaced by -K, keymgmt determines key type automatically
fixed decoding of files smaller than blocksize, fixed check for EOF without newline
check for zero sized input