com.tozny.e3db.CipherSuite Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of e3db-client-plain Show documentation
Show all versions of e3db-client-plain Show documentation
An SDK to interact with TozStore Encrypted Storage
package com.tozny.e3db;
import static com.tozny.e3db.KeyType.Curve25519;
import static com.tozny.e3db.KeyType.Ed25519;
import static com.tozny.e3db.KeyType.P384;
public enum CipherSuite {
FIPS(P384, P384),
Sodium(Curve25519, Ed25519);
private final KeyType encryptionKey;
private final KeyType signingKey;
CipherSuite(KeyType encryptionKey, KeyType signingKey) {
this.encryptionKey = encryptionKey;
this.signingKey = signingKey;
}
public KeyType getSigningKeyType() {
return signingKey;
}
public KeyType getEncryptionKeyType() {
return encryptionKey;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy