Fixed keyfiles using salt
Added a convenience function that allows you to specify nonce size by the max
payload size.