pod32g / md5 Goto Github PK
View Code? Open in Web Editor NEWC implementation of the MD5 algorithm
License: Apache License 2.0
C implementation of the MD5 algorithm
License: Apache License 2.0
sorry, i can not understand that u make it "inital_len * 8" when appending the inital length, I think it should be "inital_len"
I don't understand why the follow code is written like this.
According to the MD5 algorithm, it is filled with first 1 and 0 at last. Why do we need this step?
` for (offset = initial_len + 1; offset < new_len; offset++)
msg[offset] = 0;
// append the len in bits at the end of the buffer.
to_bytes(initial_len*8, msg + new_len);
// initial_len>>29 == initial_len*8>>32, but avoids overflow.
to_bytes(initial_len>>29, msg + new_len + 4);`
我用CCS运行您的程序,但是得到的结果并不正确
It would be nice to have a license file for this repo to know how it can be used and what attribution is acquired.
void to_bytes(uint32_t val, uint8_t *bytes)
{
bytes[0] = (uint8_t) val;
bytes[1] = (uint8_t) (val >> 8);
bytes[2] = (uint8_t) (val >> 16);
bytes[3] = (uint8_t) (val >> 24);
}
u use "uint32_t" val to represent the length of msg, but in md5 the length should be 64 bits?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.