CVSROOT: /cvs Module name: src Changes by: t...@cvs.openbsd.org 2024/10/31 23:20:58
Modified files: lib/libcrypto/ec: ec_convert.c Log message: Move point_conversion_t conversion to API boundary EC_POINT_oct2point() is the only API that needs detailed knowledge about this incomplete enum. [Arguably, the setters for the EC_KEY and EC_GROUP member of that type would also need to be able to validate what's being set, but they can't since they can't fail.] Anyway. Add a helper that lets EC_POINT_oct2point() translate that enum to its internal representation at the API boundary and add a check that ensures that we only encode the point at infinity as the point at infinity. ok jsing