A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
Cipher_code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new
[Cipher_code.git]
/
OneRoundIoT
/
OneRound
/
rc4_hash3.cpp
diff --git
a/OneRoundIoT/OneRound/rc4_hash3.cpp
b/OneRoundIoT/OneRound/rc4_hash3.cpp
index 9277f1f5e14c54cf4787f2fc6de70ae4a27ff442..3cb1e077edbe5cba2e1209887e0cea7a83132687 100644
(file)
--- a/
OneRoundIoT/OneRound/rc4_hash3.cpp
+++ b/
OneRoundIoT/OneRound/rc4_hash3.cpp
@@
-167,16
+167,11
@@
void hash_DSD_BIN(uint64_t * ss, uint64_t* rm,int len,int h) {
int ind1=0;
int ind1=0;
-
-
-
-
- int a=0;
for(int it=0;it<len;it++) {
rm[0]=rm[h-1]^ss[ind1];
rm[0]=xorshift64(rm[0] );
for(int it=0;it<len;it++) {
rm[0]=rm[h-1]^ss[ind1];
rm[0]=xorshift64(rm[0] );
- for(a=1;a<h;a++) {
+ for(
int
a=1;a<h;a++) {
rm[a]=rm[a-1]^ss[ind1+a];
rm[a]=xorshift64(rm[a]);
}
rm[a]=rm[a-1]^ss[ind1+a];
rm[a]=xorshift64(rm[a]);
}