Fixes changed the recursive derivation of the password based encryption
key to a while loop. Stack overflow issues were occurring using a
recursive function.