Skip to content

Commit ec6726e

Browse files
committed
Use generic EC_POINT_get_affine_coordinates
1 parent 348d866 commit ec6726e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Cafe/IOSU/legacy/iosu_crypto.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void iosuCrypto_generateDeviceCertificate()
273273
BIGNUM* bn_x = BN_CTX_get(context);
274274
BIGNUM* bn_y = BN_CTX_get(context);
275275

276-
EC_POINT_get_affine_coordinates_GF2m(group, pubkey, bn_x, bn_y, NULL);
276+
EC_POINT_get_affine_coordinates(group, pubkey, bn_x, bn_y, NULL);
277277

278278
uint8 publicKeyOutput[0x3C];
279279
memset(publicKeyOutput, 0, sizeof(publicKeyOutput));

src/Cemu/ncrypto/ncrypto.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ namespace NCrypto
550550
EC_POINT_mul(group, pubkey, bn_privKey, NULL, NULL, NULL);
551551
BIGNUM* bn_x = BN_new();
552552
BIGNUM* bn_y = BN_new();
553-
EC_POINT_get_affine_coordinates_GF2m(group, pubkey, bn_x, bn_y, NULL);
553+
EC_POINT_get_affine_coordinates(group, pubkey, bn_x, bn_y, NULL);
554554

555555
// store public key
556556
ECCPubKey genPubKey;

0 commit comments

Comments
 (0)