pubkey_ec = EVP_PKEY_get0_EC_KEY(pubkey);if(pubkey_ec ==NULL)gotoerror; point = EC_KEY_get0_public_key(pubkey_ec);if(point ==NULL)gotoerror;if(EC_KEY_set_public_key(ec, point) ==0)gotoerror; rv =0; error:#ifOPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_...
importjavacard.security.ECPublicKey;//导入方法依赖的package包/类staticpublicKeyPairnewKeyPair(){ KeyPair kp =newKeyPair(KeyPair.ALG_EC_FP, (short)256); ECPrivateKey ecPrv = (ECPrivateKey) kp.getPrivate(); ECPublicKey ecPub = (ECPublicKey) kp.getPublic(); ecPrv.setFieldFP(p, (short...