final String id; // RSA private key value associated with the corresponding test vectors final RSAPrivateKeySpec privKeySpec;
// RSA public key value associated with the corresponding test vectors final RSAPublicKeySpec pubKeySpec;
// set of test vectors final List<SigVector> testVectors;
SigRecord(String mod, String pubExp, String privExp, List<SigVector> testVectors) { if (mod == null || mod.isEmpty()) { thrownew IllegalArgumentException("Modulus n must be specified");
} if (pubExp == null || pubExp.isEmpty()) { thrownew IllegalArgumentException("Public Exponent e must be specified");
} if (privExp == null || privExp.isEmpty()) { thrownew IllegalArgumentException("Private Exponent d must be specified");
} if (testVectors == null || (testVectors.size() == 0)) { thrownew IllegalArgumentException("One or more test vectors must be specified");
}
BigInteger n = new BigInteger(1, HexFormat.of().parseHex(mod));
BigInteger e = new BigInteger(1, HexFormat.of().parseHex(pubExp));
BigInteger d = new BigInteger(1, HexFormat.of().parseHex(privExp)); this.id = ("n=" + mod + ", e=" + pubExp); this.pubKeySpec = new RSAPublicKeySpec(n, e); this.privKeySpec = new RSAPrivateKeySpec(n, d); this.testVectors = testVectors;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.