summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/kue/kue-license
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2025-01-05 16:07:09 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2025-01-05 16:07:09 +0000
commit4309e6a38a1386ed5d14965d55eed6f1a98c8f06 (patch)
tree2de4c63d82bf1bda59573a9b656b6083b215f920 /sys/dev/microcode/kue/kue-license
parent81b2c4c5f00d45c1a1bc6ec0212516066d063208 (diff)
Move BIGNUMs in EC_GROUP and EC_POINT to the heapHEADmastercvs/HEAD
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/microcode/kue/kue-license')
0 files changed, 0 insertions, 0 deletions