[1.0.0] New jar file
This commit is contained in:
Binary file not shown.
@@ -79,7 +79,7 @@ public class Certificate {
|
||||
// 1. Prima di tutto, verifichiamo la firma
|
||||
|
||||
// 1.a Decodifico la firma ottenuta
|
||||
BigInteger[] kPubCA = Keys.publicFromFile("cryptea", publicKey);
|
||||
BigInteger[] kPubCA = Keys.publicFromFile(publicKey);
|
||||
// kPub[0] = e
|
||||
// kPub[1] = n
|
||||
BigInteger decrypted = RSA.decryptWithPublic(signature, kPubCA[0], kPubCA[1]);
|
||||
|
||||
@@ -63,7 +63,7 @@ public class Keys {
|
||||
* @param content Il contenuto formattato
|
||||
* @return Ritorna i valori "e" "n" in formato BigInteger[]
|
||||
*/
|
||||
public static BigInteger[] publicFromFile(String type, String content) throws Exception {
|
||||
public static BigInteger[] publicFromFile(String content) throws Exception {
|
||||
BigInteger[] kPub = { BigInteger.ZERO, BigInteger.ZERO };
|
||||
String cleaned = content
|
||||
.replace("-----BEGIN CRYPTEA PUBLIC KEY-----", "")
|
||||
|
||||
Reference in New Issue
Block a user