negative return code
This commit is contained in:
parent
99bed07f64
commit
6499f18855
@ -136,5 +136,5 @@ int PQCLEAN_HQC128_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned char *c
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -140,5 +140,5 @@ int PQCLEAN_HQC128_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned char *
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -136,5 +136,5 @@ int PQCLEAN_HQC192_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned char *c
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -140,5 +140,5 @@ int PQCLEAN_HQC192_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned char *
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -136,5 +136,5 @@ int PQCLEAN_HQC256_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned char *c
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -140,5 +140,5 @@ int PQCLEAN_HQC256_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned char *
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS128_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned cha
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS128_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned ch
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS192_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned cha
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS192_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned ch
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS256_AVX2_crypto_kem_dec(unsigned char *ss, const unsigned cha
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
@ -136,5 +136,5 @@ int PQCLEAN_HQCRMRS256_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned ch
|
||||
}
|
||||
|
||||
|
||||
return result & 1;
|
||||
return -(result & 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user