java.lang.Object
io.github.tonywasher.joceanus.gordianknot.util.GordianUtilities

public final class GordianUtilities extends Object
Utilities.
  • Field Details

  • Method Details

    • getMaximumKeyWrapLength

      public static int getMaximumKeyWrapLength()
      Obtain Maximum KeyWrapLength.
      Returns:
      the maximum keyWrap size
    • getMaximumKeySetWrapLength

      public static int getMaximumKeySetWrapLength()
      Obtain Maximum KeyWrapLength.
      Returns:
      the maximum keyWrap size
    • getFactoryLockLen

      public static int getFactoryLockLen()
      Obtain FactoryLockLen.
      Returns:
      the factoryLock length
    • getKeySetEncryptionLength

      public static int getKeySetEncryptionLength(int pDataLength)
      Obtain Encryption length.
      Parameters:
      pDataLength - the length of data to be encrypted
      Returns:
      the length of encrypted data
    • newDigestSpecBuilder

      public static GordianDigestSpecBuilder newDigestSpecBuilder()
      Obtain DigestSpecBuilder instance.
      Returns:
      the specBuilder
    • newSymKeySpecBuilder

      public static GordianSymKeySpecBuilder newSymKeySpecBuilder()
      Obtain SymKeySpecBuilder instance.
      Returns:
      the specBuilder
    • newSymCipherSpecBuilder

      public static GordianSymCipherSpecBuilder newSymCipherSpecBuilder()
      Obtain SymKeySpecBuilder instance.
      Returns:
      the specBuilder
    • newStreamKeySpecBuilder

      public static GordianStreamKeySpecBuilder newStreamKeySpecBuilder()
      Obtain SymKeySpecBuilder instance.
      Returns:
      the specBuilder
    • newStreamCipherSpecBuilder

      public static GordianStreamCipherSpecBuilder newStreamCipherSpecBuilder()
      Obtain SymKeySpecBuilder instance.
      Returns:
      the specBuilder
    • newPBESpecBuilder

      public static GordianPBESpecBuilder newPBESpecBuilder()
      Obtain PBESpecBuilder instance.
      Returns:
      the specBuilder
    • newMacSpecBuilder

      public static GordianMacSpecBuilder newMacSpecBuilder()
      Obtain MacSpecBuilder instance.
      Returns:
      the specBuilder
    • newRandomSpecBuilder

      public static GordianRandomSpecBuilder newRandomSpecBuilder()
      Obtain RandomSpecBuilder instance.
      Returns:
      the specBuilder
    • newKeySetSpecBuilder

      public static GordianKeySetSpecBuilder newKeySetSpecBuilder()
      Obtain KeySetSpecBuilder instance.
      Returns:
      the specBuilder
    • newPasswordLockSpecBuilder

      public static GordianPasswordLockSpecBuilder newPasswordLockSpecBuilder()
      Obtain PasswordLockSpecBuilder instance.
      Returns:
      the specBuilder
    • newKeyPairSpecBuilder

      public static GordianKeyPairSpecBuilder newKeyPairSpecBuilder()
      Obtain KeyPairSpecBuilder instance.
      Returns:
      the specBuilder
    • newSignatureSpecBuilder

      public static GordianSignatureSpecBuilder newSignatureSpecBuilder()
      Obtain SignatureSpecBuilder instance.
      Returns:
      the specBuilder
    • newEncryptorSpecBuilder

      public static GordianEncryptorSpecBuilder newEncryptorSpecBuilder()
      Obtain EncryptorSpecBuilder instance.
      Returns:
      the specBuilder
    • newAgreementSpecBuilder

      public static GordianAgreementSpecBuilder newAgreementSpecBuilder()
      Obtain AgreementSpecBuilder instance.
      Returns:
      the specBuilder