/** * @return name of the algorithm */ public final String getAlgorithm() { return QTESLASecurityCategory.getName(keyParams.getSecurityCategory()); }
public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof BCqTESLAPrivateKey) { BCqTESLAPrivateKey otherKey = (BCqTESLAPrivateKey)o; return keyParams.getSecurityCategory() == otherKey.keyParams.getSecurityCategory() && Arrays.areEqual(keyParams.getSecret(), otherKey.keyParams.getSecret()); } return false; }
public int hashCode() { return keyParams.getSecurityCategory() + 37 * Arrays.hashCode(keyParams.getSecret()); }
byte[] sig = new byte[QTESLASecurityCategory.getSignatureSize(privateKey.getSecurityCategory())]; switch (privateKey.getSecurityCategory()) break; default: throw new IllegalArgumentException("unknown security category: " + privateKey.getSecurityCategory());
QTESLASecurityCategory.validate(privateKey.getSecurityCategory());
AlgorithmIdentifier algorithmIdentifier = Utils.qTeslaLookupAlgID(keyParams.getSecurityCategory());