projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86_64-xlate.pl: small commentary update.
[oweals/openssl.git]
/
engines
/
ccgost
/
gosthash.c
diff --git
a/engines/ccgost/gosthash.c
b/engines/ccgost/gosthash.c
index de55e0c3aa9dcf55fc3d7ff3a52bf1a5efe42b16..6365c699982a4eac5dcf9c4f2cdfaf561190ed05 100644
(file)
--- a/
engines/ccgost/gosthash.c
+++ b/
engines/ccgost/gosthash.c
@@
-228,7
+228,7
@@
int finish_hash(gost_hash_ctx *ctx,byte *hashval)
byte buf[32];
byte H[32];
byte S[32];
byte buf[32];
byte H[32];
byte S[32];
-
long long
fin_len=ctx->len;
+
ghosthash_len
fin_len=ctx->len;
byte *bptr;
memcpy(H,ctx->H,32);
memcpy(S,ctx->S,32);
byte *bptr;
memcpy(H,ctx->H,32);
memcpy(S,ctx->S,32);
@@
-245,7
+245,7
@@
int finish_hash(gost_hash_ctx *ctx,byte *hashval)
fin_len<<=3; /* Hash length in BITS!!*/
while(fin_len>0)
{
fin_len<<=3; /* Hash length in BITS!!*/
while(fin_len>0)
{
- *(bptr++)=
fin_len&0xFF
;
+ *(bptr++)=
(byte)(fin_len&0xFF)
;
fin_len>>=8;
};
hash_step(ctx->cipher_ctx,H,buf);
fin_len>>=8;
};
hash_step(ctx->cipher_ctx,H,buf);