Crypto bugs fixed part II.
Merge branch 'master' of https://github.com/petrs/WSNProtectLayer