mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 17:19:18 +01:00
Use generic EC_POINT_get_affine_coordinates
This commit is contained in:
parent
348d86648f
commit
ec6726e85c
@ -273,7 +273,7 @@ void iosuCrypto_generateDeviceCertificate()
|
|||||||
BIGNUM* bn_x = BN_CTX_get(context);
|
BIGNUM* bn_x = BN_CTX_get(context);
|
||||||
BIGNUM* bn_y = BN_CTX_get(context);
|
BIGNUM* bn_y = BN_CTX_get(context);
|
||||||
|
|
||||||
EC_POINT_get_affine_coordinates_GF2m(group, pubkey, bn_x, bn_y, NULL);
|
EC_POINT_get_affine_coordinates(group, pubkey, bn_x, bn_y, NULL);
|
||||||
|
|
||||||
uint8 publicKeyOutput[0x3C];
|
uint8 publicKeyOutput[0x3C];
|
||||||
memset(publicKeyOutput, 0, sizeof(publicKeyOutput));
|
memset(publicKeyOutput, 0, sizeof(publicKeyOutput));
|
||||||
|
@ -550,7 +550,7 @@ namespace NCrypto
|
|||||||
EC_POINT_mul(group, pubkey, bn_privKey, NULL, NULL, NULL);
|
EC_POINT_mul(group, pubkey, bn_privKey, NULL, NULL, NULL);
|
||||||
BIGNUM* bn_x = BN_new();
|
BIGNUM* bn_x = BN_new();
|
||||||
BIGNUM* bn_y = BN_new();
|
BIGNUM* bn_y = BN_new();
|
||||||
EC_POINT_get_affine_coordinates_GF2m(group, pubkey, bn_x, bn_y, NULL);
|
EC_POINT_get_affine_coordinates(group, pubkey, bn_x, bn_y, NULL);
|
||||||
|
|
||||||
// store public key
|
// store public key
|
||||||
ECCPubKey genPubKey;
|
ECCPubKey genPubKey;
|
||||||
|
Loading…
Reference in New Issue
Block a user