All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tozny.e3db.CipherSuite Maven / Gradle / Ivy

There is a newer version: 7.2.3
Show newest version
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