Skip to content

Commit

Permalink
Fix Whirlpool copy & pasta.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekKnapek committed Nov 14, 2023
1 parent f91cb80 commit 86f0d6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mk_clib/projects/emscripten/mkch.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ static mk_lang_inline void append(alg_pt const alg, alg_id_t const id, mk_lang_t
case alg_id_e_hash_tiger_128 : mk_lib_crypto_hash_stream_tiger_128_append (&alg->m_tiger_128 , msg, msg_len); break;
case alg_id_e_hash_tiger_160 : mk_lib_crypto_hash_stream_tiger_160_append (&alg->m_tiger_160 , msg, msg_len); break;
case alg_id_e_hash_tiger_192 : mk_lib_crypto_hash_stream_tiger_192_append (&alg->m_tiger_192 , msg, msg_len); break;
case alg_id_e_hash_whirlpool : mk_lib_crypto_hash_stream_sha1_append (&alg->m_whirlpool , msg, msg_len); break;
case alg_id_e_hash_whirlpool : mk_lib_crypto_hash_stream_whirlpool_append (&alg->m_whirlpool , msg, msg_len); break;
case alg_id_e_xof_shake_128 : mk_lib_crypto_xof_stream_shake_128_append (&alg->m_shake_128 , msg, msg_len); break;
case alg_id_e_xof_shake_256 : mk_lib_crypto_xof_stream_shake_256_append (&alg->m_shake_256 , msg, msg_len); break;
}
Expand Down Expand Up @@ -499,7 +499,7 @@ static mk_lang_inline int finish(alg_pt const alg, alg_id_t const id, int const
case alg_id_e_hash_tiger_128 : mk_lib_crypto_hash_stream_tiger_128_finish (&alg->m_tiger_128 , ((mk_lib_crypto_hash_block_tiger_128_digest_pt )(digest))); return mk_lib_crypto_hash_block_tiger_128_digest_len ; break;
case alg_id_e_hash_tiger_160 : mk_lib_crypto_hash_stream_tiger_160_finish (&alg->m_tiger_160 , ((mk_lib_crypto_hash_block_tiger_160_digest_pt )(digest))); return mk_lib_crypto_hash_block_tiger_160_digest_len ; break;
case alg_id_e_hash_tiger_192 : mk_lib_crypto_hash_stream_tiger_192_finish (&alg->m_tiger_192 , ((mk_lib_crypto_hash_block_tiger_192_digest_pt )(digest))); return mk_lib_crypto_hash_block_tiger_192_digest_len ; break;
case alg_id_e_hash_whirlpool : mk_lib_crypto_hash_stream_sha1_finish (&alg->m_whirlpool , ((mk_lib_crypto_hash_block_sha1_digest_pt )(digest))); return mk_lib_crypto_hash_block_sha1_digest_len ; break;
case alg_id_e_hash_whirlpool : mk_lib_crypto_hash_stream_whirlpool_finish (&alg->m_whirlpool , ((mk_lib_crypto_hash_block_whirlpool_digest_pt )(digest))); return mk_lib_crypto_hash_block_whirlpool_digest_len ; break;
case alg_id_e_xof_shake_128 : mk_lib_crypto_xof_stream_shake_128_finish (&alg->m_shake_128 , xof_len, ((mk_lib_crypto_xof_block_shake_128_digest_pt )(digest))); return xof_len ; break;
case alg_id_e_xof_shake_256 : mk_lib_crypto_xof_stream_shake_256_finish (&alg->m_shake_256 , xof_len, ((mk_lib_crypto_xof_block_shake_256_digest_pt )(digest))); return xof_len ; break;
}
Expand Down

0 comments on commit 86f0d6c

Please sign in to comment.