contexts: Forbid randomizing secp256k1_context_static

This commit is contained in:
Tim Ruffing
2022-12-07 14:50:14 +01:00
parent 4b6df5e33e
commit 61841fc9ee
4 changed files with 57 additions and 17 deletions

View File

@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Changed
- Forbade cloning or destroying `secp256k1_context_static`. Create a new context instead of cloning the static context. (If this change breaks your code, your code is probably wrong.)
- Forbade randomizing (copies of) `secp256k1_context_static`. Randomizing a copy of `secp256k1_context_static` did not have any effect and did not provide defense-in-depth protection against side-channel attacks. Create a new context if you want to benefit from randomization.
## [0.2.0] - 2022-12-12