return entry .getPrimitive() .decryptDeterministically(ciphertextNoPrefix, associatedData); } catch (GeneralSecurityException e) { logger.info("ciphertext prefix matches a key, but cannot decrypt: " + e.toString()); for (PrimitiveSet.Entry<DeterministicAead> entry : entries) { try { return entry.getPrimitive().decryptDeterministically(ciphertext, associatedData); } catch (GeneralSecurityException e) { continue;