]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/des.c
Adjust global variable name
[proxmark3-svn] / armsrc / des.c
index a81df9c8d4234c7bd2bd5432b0a503f9a1c6ba36..f1aa80da20a0f4d8eedc7c4b0d84a9d6d882d555 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