This website works better with JavaScript.
Home
Explore
Help
Sign In
kris
/
pqc
Watch
1
Star
1
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix FIPS202 API memory leaks in Dilithium
kyber
Thom Wiggers
4 years ago
committed by
Kris Kwiatkowski
parent
a804c623de
commit
160030400d
6 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
crypto_sign/dilithium2/avx2/sign.c
+1
-0
crypto_sign/dilithium2/clean/sign.c
+1
-0
crypto_sign/dilithium3/avx2/sign.c
+1
-0
crypto_sign/dilithium3/clean/sign.c
+1
-0
crypto_sign/dilithium4/avx2/sign.c
+1
-0
crypto_sign/dilithium4/clean/sign.c
+ 1
- 0
crypto_sign/dilithium2/avx2/sign.c
View File
@@ -95,6 +95,7 @@ void PQCLEAN_DILITHIUM2_AVX2_challenge(poly *c,
c->coeffs[b] ^= -(signs & 1) & (1 ^ (Q - 1));
signs >>= 1;
}
shake256_ctx_release(&state);
}
/*************************************************
+ 1
- 0
crypto_sign/dilithium2/clean/sign.c
View File
@@ -85,6 +85,7 @@ void PQCLEAN_DILITHIUM2_CLEAN_challenge(poly *c,
c->coeffs[b] ^= -((int32_t)signs & 1) & (1 ^ (Q - 1));
signs >>= 1;
}
shake256_ctx_release(&state);
}
/*************************************************
+ 1
- 0
crypto_sign/dilithium3/avx2/sign.c
View File
@@ -107,6 +107,7 @@ void PQCLEAN_DILITHIUM3_AVX2_challenge(poly *c,
c->coeffs[b] ^= -(signs & 1) & (1 ^ (Q - 1));
signs >>= 1;
}
shake256_ctx_release(&state);
}
/*************************************************
+ 1
- 0
crypto_sign/dilithium3/clean/sign.c
View File
@@ -85,6 +85,7 @@ void PQCLEAN_DILITHIUM3_CLEAN_challenge(poly *c,
c->coeffs[b] ^= -((int32_t)signs & 1) & (1 ^ (Q - 1));
signs >>= 1;
}
shake256_ctx_release(&state);
}
/*************************************************
+ 1
- 0
crypto_sign/dilithium4/avx2/sign.c
View File
@@ -122,6 +122,7 @@ void PQCLEAN_DILITHIUM4_AVX2_challenge(poly *c,
c->coeffs[b] ^= -(signs & 1) & (1 ^ (Q - 1));
signs >>= 1;
}
shake256_ctx_release(&state);
}
/*************************************************
+ 1
- 0
crypto_sign/dilithium4/clean/sign.c
View File
@@ -85,6 +85,7 @@ void PQCLEAN_DILITHIUM4_CLEAN_challenge(poly *c,
c->coeffs[b] ^= -((int32_t)signs & 1) & (1 ^ (Q - 1));
signs >>= 1;
}
shake256_ctx_release(&state);
}
/*************************************************
Write
Preview
Loading…
Cancel
Save