]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/des.c
CHG: we don't want to assert inside the pm3 client.
[proxmark3-svn] / armsrc / des.c
index e72ebb2af5b18a138bb4f97d8e0f5771a8f86150..1ff041843e60aadbda8e65148562d765373d4cc3 100644 (file)
@@ -274,7 +274,7 @@ uint32_t des_f(uint32_t r, uint8_t* kr){
        uint64_t data;
        uint8_t *sbp; /* sboxpointer */ 
        permute((uint8_t*)e_permtab, (uint8_t*)&r, (uint8_t*)&data);
-       for(i=0; i<7; ++i)
+       for(i=0; i<6; ++i)
                ((uint8_t*)&data)[i] ^= kr[i];
        
        /* Sbox substitution */
Impressum, Datenschutz