MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / Final

Method Final

extra/yassl/taocrypt/src/md2.cpp:106–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106void MD2::Final(byte *hash)
107{
108 byte padding[BLOCK_SIZE];
109 word32 padLen = PAD_SIZE - count_;
110
111 for (word32 i = 0; i < padLen; i++)
112 padding[i] = static_cast<byte>(padLen);
113
114 Update(padding, padLen);
115 Update(C_.get_buffer(), BLOCK_SIZE);
116
117 memcpy(hash, X_.get_buffer(), DIGEST_SIZE);
118
119 Init();
120}
121
122
123

Callers 15

DIGESTFinalFunction · 0.45
my_md5_hashFunction · 0.45
mysql_sha1_yasslFunction · 0.45
mysql_sha1_multi_yasslFunction · 0.45
bench_md5Function · 0.45
bench_shaFunction · 0.45
bench_ripemdFunction · 0.45
bench_dsaFunction · 0.45
file_testFunction · 0.45
sha_testFunction · 0.45
sha256_testFunction · 0.45
sha512_testFunction · 0.45

Calls 1

get_bufferMethod · 0.45

Tested by 12

file_testFunction · 0.36
sha_testFunction · 0.36
sha256_testFunction · 0.36
sha512_testFunction · 0.36
sha384_testFunction · 0.36
sha224_testFunction · 0.36
md5_testFunction · 0.36
md4_testFunction · 0.36
md2_testFunction · 0.36
ripemd_testFunction · 0.36
hmac_testFunction · 0.36
dsa_testFunction · 0.36