Commit bfb10b97 authored by Billy Brumley's avatar Billy Brumley Committed by Richard Levitte
Browse files

[test] throw error from wrapper function instead of an EC_METHOD specific one

parent 30c41bfb
Loading
Loading
Loading
Loading
+4 −0
Changes for crypto/ec/ec_lib.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -757,6 +757,10 @@ int EC_POINT_get_affine_coordinates(const EC_GROUP *group,
        ECerr(EC_F_EC_POINT_GET_AFFINE_COORDINATES, EC_R_INCOMPATIBLE_OBJECTS);
        return 0;
    }
    if (EC_POINT_is_at_infinity(group, point)) {
        ECerr(EC_F_EC_POINT_GET_AFFINE_COORDINATES, EC_R_POINT_AT_INFINITY);
        return 0;
    }
    return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
}

+1 −1
Changes for test/recipes/30-test_evp_data/evppkey.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -17286,7 +17286,7 @@ Derive=ALICE_cf_sect283k1
PeerKey=BOB_cf_sect283k1_PUB
Ctrl=ecdh_cofactor_mode:1
Result = DERIVE_ERROR
Function=ec_GF2m_simple_point_get_affine_coordinates
Function=EC_POINT_get_affine_coordinates
Reason=point at infinity
Title = Test keypair mismatches
+84 −84

File changed.

Preview size limit exceeded, changes collapsed.