I have a list of the random values (each 65 bytes long). One of the items is a private key which is used to sign the data:
Private key = KeyFactory.getInstance("EC").generatePrivate( new ECPrivateKeySpec(new BigInteger(<ONE OF THE ITEM FROM THE LIST>), ECNamedCurveTable.getParameterSpec("SECP521R1")) ); Signature sig = Signature.getInstance("SHA256withECDSA"); sig.initSign(key); sig.update(<data to sign>) sig.sign();
I have no access to the correspond public key nor result of the sign().
Is there any way to find of which item on the list is a valid private key? I know that only one value is a private key.
Is a ECC private key random value? Or maybe it has a "structure" which can be used to distinguish it from other random values?