[PATCH v3 6/7] bcrypt: Reorganize hash_handle_from_desc helper so it can be reused.