[1.0.0] New jar file

This commit is contained in:
2026-03-31 23:01:57 +02:00
parent c18f0ab970
commit e092d48dbb
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -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]);

View File

@@ -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-----", "")