Some basic feature implemented for Ellecptic Curve.
-
ecKeyPairGenerator(String curveName)
: Generates ECKeyPair, shows public key and write private key into a file "privateKey.key". -
ecSign(KeyPair keyPair, String message)
: Sign message with its internally generated private key. -
ecVerify(String sign, ECPublicKey ecPublicKey, String message)
: Verify a signatue data. -
genEcPubKey()
: Convert a byte array public key into java public key object.