Port of OpenBSD s/key implementation
