diff options
author | jsing <> | 2023-04-11 18:58:20 +0000 |
---|---|---|
committer | jsing <> | 2023-04-11 18:58:20 +0000 |
commit | b0ee26c7d2e2ba5f8d9159d9c269c93565c36841 (patch) | |
tree | 566c48c290ac86140f8df6c959b74661e1d596a7 /src/lib/libcrypto/dsa/dsa_gen.c | |
parent | 9253152f1f616a3508716fdac0238296418c2025 (diff) | |
download | openbsd-b0ee26c7d2e2ba5f8d9159d9c269c93565c36841.tar.gz openbsd-b0ee26c7d2e2ba5f8d9159d9c269c93565c36841.tar.bz2 openbsd-b0ee26c7d2e2ba5f8d9159d9c269c93565c36841.zip |
Handle BN_CTX at the EC API boundary.
The EC API allows callers to optionally pass in a BN_CTX, which means that
any code needing a BN_CTX has to check if one was provided, allocate one if
not, then free it again. Rather than doing this dance throughout the EC
code, handle the BN_CTX existance at the EC API boundary. This means that
lower level implementation code can simply assume that the BN_CTX is
available.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_gen.c')
0 files changed, 0 insertions, 0 deletions