X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;ds=sidebyside;f=des%2Fdes.c;h=0a27503e016d197e63d730a557b625cded147e63;hb=8a278843bb99652f5b2a74ec1274528e56867e4a;hp=f7b99526fa15bf97984e303e81320074f0b5255d;hpb=c3885c4a83156d5603c48afb57562531b7b256b7;p=arm-crypto-lib.git diff --git a/des/des.c b/des/des.c index f7b9952..0a27503 100644 --- a/des/des.c +++ b/des/des.c @@ -202,10 +202,9 @@ const uint8_t shiftkeyinv_permtab[] = { #define ROTTABLE_INV 0x3F7E /******************************************************************************/ -void permute(uint8_t *ptable, const uint8_t *in, uint8_t *out){ - uint8_t ib, ob; /* in-bytes and out-bytes */ +void permute(const uint8_t *ptable, const uint8_t *in, uint8_t *out){ + uint8_t ob; /* in-bytes and out-bytes */ uint8_t byte, bit; /* counter for bit and byte */ - ib = ptable[0]; ob = ptable[1]; ptable = &(ptable[2]); for(byte=0; byte