Browse Source

negative return code

tags/v0.0.1
John M. Schanck 4 years ago
committed by Kris Kwiatkowski
parent
commit
84005fd23a
12 changed files with 12 additions and 12 deletions
  1. +1
    -1
      crypto_kem/hqc-128/avx2/kem.c
  2. +1
    -1
      crypto_kem/hqc-128/clean/kem.c
  3. +1
    -1
      crypto_kem/hqc-192/avx2/kem.c
  4. +1
    -1
      crypto_kem/hqc-192/clean/kem.c
  5. +1
    -1
      crypto_kem/hqc-256/avx2/kem.c
  6. +1
    -1
      crypto_kem/hqc-256/clean/kem.c
  7. +1
    -1
      crypto_kem/hqc-rmrs-128/avx2/kem.c
  8. +1
    -1
      crypto_kem/hqc-rmrs-128/clean/kem.c
  9. +1
    -1
      crypto_kem/hqc-rmrs-192/avx2/kem.c
  10. +1
    -1
      crypto_kem/hqc-rmrs-192/clean/kem.c
  11. +1
    -1
      crypto_kem/hqc-rmrs-256/avx2/kem.c
  12. +1
    -1
      crypto_kem/hqc-rmrs-256/clean/kem.c

+ 1
- 1
crypto_kem/hqc-128/avx2/kem.c View File

@@ -136,5 +136,5 @@ int PQCLEAN_HQC128_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned char *c
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-128/clean/kem.c View File

@@ -140,5 +140,5 @@ int PQCLEAN_HQC128_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned char *
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-192/avx2/kem.c View File

@@ -136,5 +136,5 @@ int PQCLEAN_HQC192_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned char *c
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-192/clean/kem.c View File

@@ -140,5 +140,5 @@ int PQCLEAN_HQC192_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned char *
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-256/avx2/kem.c View File

@@ -136,5 +136,5 @@ int PQCLEAN_HQC256_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned char *c
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-256/clean/kem.c View File

@@ -140,5 +140,5 @@ int PQCLEAN_HQC256_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned char *
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-rmrs-128/avx2/kem.c View File

@@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS128_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned cha
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-rmrs-128/clean/kem.c View File

@@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS128_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned ch
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-rmrs-192/avx2/kem.c View File

@@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS192_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned cha
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-rmrs-192/clean/kem.c View File

@@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS192_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned ch
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-rmrs-256/avx2/kem.c View File

@@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS256_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned cha
}


return result & 1;
return -(result & 1);
}

+ 1
- 1
crypto_kem/hqc-rmrs-256/clean/kem.c View File

@@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS256_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned ch
}


return result & 1;
return -(result & 1);
}

Loading…
Cancel
Save