]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/des.c
more coverity fixes
[proxmark3-svn] / armsrc / des.c
index a81df9c8d4234c7bd2bd5432b0a503f9a1c6ba36..9bfd10905f11a28706ce5746910719596a97fe08 100644 (file)
@@ -26,7 +26,7 @@
  * 
  */
 #include <stdint.h>
-#include <string.h>
+#include "string.h"
 
 const uint8_t sbox[256]  = {
   /* S-box 1 */
@@ -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