diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2025-01-05 16:07:09 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2025-01-05 16:07:09 +0000 |
commit | 4309e6a38a1386ed5d14965d55eed6f1a98c8f06 (patch) | |
tree | 2de4c63d82bf1bda59573a9b656b6083b215f920 /sys/dev/acpi/ipmi_acpi.c | |
parent | 81b2c4c5f00d45c1a1bc6ec0212516066d063208 (diff) |
The only way to get an EC_GROUP or an EC_POINT is by calling the relevant
_new() function and to get rid of it, something must call _free(). Thus we
can establish the invariant that every group has Weierstrass coefficients
p, a, b as well as order and cofactor hanging off it. Similarly, Every
point has allocated BIGNUMs for its Jacobian projective coordinates.
Unfortunately, a group has the generator as an optional component in
addition to seed and montgomery context/one (where optionality makes
more sense).
This is a mostly mechanical diff and only drops a few silly comments and
a couple of unnecessary NULL checks since in our part of the wrold the
word invariant has a meaning.
This should also appease Coverity who likes to throw fits at calling
BN_free() for BIGNUM on the stack (yes, this is actually a thing).
ok jsing
Diffstat (limited to 'sys/dev/acpi/ipmi_acpi.c')
0 files changed, 0 insertions, 0 deletions