mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:23:44 +03:00
parent
60ab58a8a5
commit
4651d4c76b
20 changed files with 29 additions and 32 deletions
|
|
@ -297,7 +297,7 @@ static const unsigned long K[64] = {
|
|||
#define Gamma0(x) (Sha256_S(x, 7) ^ Sha256_S(x, 18) ^ Sha256_R(x, 3))
|
||||
#define Gamma1(x) (Sha256_S(x, 17) ^ Sha256_S(x, 19) ^ Sha256_R(x, 10))
|
||||
|
||||
/* Compress 512-bits */
|
||||
/* Compress 512 bits */
|
||||
static int sha256_compress(struct sha256_state *md, const unsigned char *buf)
|
||||
{
|
||||
unsigned long S[8], W[64];
|
||||
|
|
@ -307,7 +307,7 @@ static int sha256_compress(struct sha256_state *md, const unsigned char *buf)
|
|||
for(i = 0; i < 8; i++) {
|
||||
S[i] = md->state[i];
|
||||
}
|
||||
/* copy the state into 512-bits into W[0..15] */
|
||||
/* copy the state into 512 bits into W[0..15] */
|
||||
for(i = 0; i < 16; i++)
|
||||
W[i] = WPA_GET_BE32(buf + (4 * i));
|
||||
/* fill W[16..63] */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue