abort nicely when A == 0 (mod N)
avoid buffer underflow when A is longer than N
abort nicely when H_nn_* fails
Merge pull request #5 from miko3k/rfc5054_compat

Merged correctness fixes for handling potentially malicious user input. Thanks to miko3k.