From 4d9a4865f4446306e2815ac4da409c92243b85b2 Mon Sep 17 00:00:00 2001 From: couturie Date: Mon, 16 Apr 2018 17:36:35 +0200 Subject: [PATCH] new --- OneRoundIoT/OneRound/one_round_auth.cpp | 1 - OneRoundIoT/OneRound/one_round_hash_new.cpp | 25 +-------------------- OneRoundIoT/openssl/openssl_evp_gcm.c | 2 +- 3 files changed, 2 insertions(+), 26 deletions(-) diff --git a/OneRoundIoT/OneRound/one_round_auth.cpp b/OneRoundIoT/OneRound/one_round_auth.cpp index 9062cad..c47f546 100644 --- a/OneRoundIoT/OneRound/one_round_auth.cpp +++ b/OneRoundIoT/OneRound/one_round_auth.cpp @@ -287,7 +287,6 @@ void encrypt_ctr(uchar* seq_in, uchar *seq_out, int len,uchar* RM1,uchar *RM2,in RM2[a+2]=Z[a+2]; RM2[a+3]=Z[a+3]; } - } } diff --git a/OneRoundIoT/OneRound/one_round_hash_new.cpp b/OneRoundIoT/OneRound/one_round_hash_new.cpp index a72d301..03242cd 100644 --- a/OneRoundIoT/OneRound/one_round_hash_new.cpp +++ b/OneRoundIoT/OneRound/one_round_hash_new.cpp @@ -168,16 +168,7 @@ void hash_DSD_BIN(uchar* seq_in, uchar* RM1,int len, int *PboxRM, uchar *Sbox1, X[a+3]=RM1[a+3]^seq_in[ind2+a+3]; } -/* Y[0]=Sbox1[X[0]^X[h-1]]; - for(int a=1;a0;a--) { - Z[a-1]=Sbox2[Z[a]^Y[a]]; - } -*/ Y[0]=X[0]^X[h-1]; for(int a=1;a