X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=des%2Fdes.c;h=0a27503e016d197e63d730a557b625cded147e63;hp=f7b99526fa15bf97984e303e81320074f0b5255d;hb=fd1c99357bf0017ed46b843ff8be8d67ad8415ee;hpb=262edc3c040a073636f91af03f1b64030c5b1b31 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