stacie_hashed_token_derive: - bug fix: hash_input was not being freed on successful exit or on failure.
stacie_hashed_token_derive:
- bug fix: hash_input was not being freed on successful exit or on failure.

- bug fix: removed heap leak prone form of calling st_append like this:
hash_input = st_append(hash_input, xxx) -> st_append(hash_input, xxx);

- bug fix: added an error check for the call to the digest hash_512() function.

- In the for loop:
- added appropriate error check to st_append (on the lastd st_append call)
- added appropriate error check to hash_sha512
- added bail label for cleanup_hash_input
- added logic operators for salt_en and nonce_len to add to readability

lavabit/magma,lavabit/magma,lavabit/magma,lavabit/magma,lavabit/magma,lavabit/magma,lavabit/magma,lavabit/magma