/** * @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 BCqTESLAPublicKey) { BCqTESLAPublicKey otherKey = (BCqTESLAPublicKey)o; return keyParams.getSecurityCategory() == otherKey.keyParams.getSecurityCategory() && Arrays.areEqual(keyParams.getPublicData(), otherKey.keyParams.getPublicData()); } return false; }
public int hashCode() { return keyParams.getSecurityCategory() + 37 * Arrays.hashCode(keyParams.getPublicData()); }
switch (publicKey.getSecurityCategory()) break; default: throw new IllegalArgumentException("unknown security category: " + publicKey.getSecurityCategory());
QTESLASecurityCategory.validate(publicKey.getSecurityCategory());
AlgorithmIdentifier algorithmIdentifier = Utils.qTeslaLookupAlgID(keyParams.getSecurityCategory());