java.lang.Object
io.github.mahmoudimus.quic.internal.verifiedcrypto.NativeMlKem.__default

public class __default extends Object
  • Constructor Details

    • __default

      public __default()
  • Method Details

    • WipeBytes

      public static void WipeBytes(byte[] a)
    • WipeInts

      public static void WipeInts(int[] a)
    • WipePolys

      public static void WipePolys(int[][] a)
    • Slice

      public static byte[] Slice(byte[] a, int start, int length)
    • Join

      public static byte[] Join(byte[] a, byte[] b)
    • Tag

      public static byte[] Tag(byte[] a, byte tag)
    • Select

      public static byte[] Select(byte[] c, byte[] expected, byte[] candidate, byte[] fallback)
    • CopyInto

      public static void CopyInto(byte[] a, byte[] b, int start)
    • Noise

      public static int[] Noise(byte[] seed, int nonce)
    • SamplePrefix

      public static Result<int[]> SamplePrefix(byte[] bytes)
    • Sample

      public static Result<int[]> Sample(byte[] rho, int i, int j)
    • ExpandMatrix

      public static Result<int[][]> ExpandMatrix(byte[] rho)
    • Expand

      public static int[] Expand(byte[] bytes, int d)
    • EncodeVector

      public static byte[] EncodeVector(int[][] a, int d)
    • NoiseVector

      public static int[][] NoiseVector(byte[] seed, int start, boolean ntt)
    • Row

      public static int[][] Row(int[][] a, int i, boolean transposed)
    • CopyInts

      public static void CopyInts(int[] a, int[] b)
    • DotStep

      public static int[] DotStep(int[] accumulator, int[] a, int[] b)
    • Dot

      public static int[] Dot(int[][] a, int[][] b)
    • RowProduct

      public static int[] RowProduct(int[][] a, int[][] b, int[] e, int i, boolean transposed, boolean inverse)
    • MatrixProduct

      public static int[][] MatrixProduct(int[][] a, int[][] b, int[][] e, boolean transposed, boolean inverse)
    • KeyMaterial

      public static dafny.Tuple2 KeyMaterial(int[][] a, byte[] sigma)
    • EncodePublic

      public static dafny.Tuple2 EncodePublic(int[][] t, byte[] rho)
    • AssembleKey

      public static SecretKey AssembleKey(byte[] retained, int[][] secret, int[][] a, int[][] t, byte[] rho, byte[] encoded, byte[] hash)
    • BuildKey

      public static SecretKey BuildKey(byte[] seed, int[][] a, byte[] rho, byte[] sigma)
    • KeyGen

      public static Result<SecretKey> KeyGen(byte[] seed)
    • DecodeKeyPart

      public static DecodeResult DecodeKeyPart(byte[] bytes, int i)
    • ParseWords

      public static Result<int[][]> ParseWords(byte[] bytes)
    • Parse

      public static Result<PublicKey> Parse(byte[] bytes)
    • EncryptU

      public static byte[] EncryptU(int[][] a, int[][] y, byte[] coins)
    • EncryptV

      public static byte[] EncryptV(int[][] t, int[][] y, byte[] m, byte[] coins)
    • Encrypt

      public static byte[] Encrypt(PublicKey ek, byte[] m, byte[] coins)
    • CipherPart

      public static int[] CipherPart(byte[] c, int i)
    • DecodeCipherU

      public static int[][] DecodeCipherU(byte[] c)
    • DecryptMask

      public static int[] DecryptMask(int[][] secret, byte[] ciphertext)
    • Decrypt

      public static byte[] Decrypt(int[][] secret, byte[] ciphertext)
    • Encaps

      public static Result<Encapsulation> Encaps(byte[] bytes, byte[] m)
    • WipeBytePreservingKey

      public static void WipeBytePreservingKey(byte[] a)
    • WipeDecapsBuffers

      public static void WipeDecapsBuffers(byte[] m, byte[] input, byte[] g, byte[] z, byte[] rejectionInput, byte[] fallback, byte[] coins, byte[] expected, byte[] candidate)
    • Decaps

      public static Result<byte[]> Decaps(SecretKey dk, byte[] ciphertext)
    • DecapsAndDestroy

      public static Result<byte[]> DecapsAndDestroy(SecretKey dk, byte[] ciphertext)
    • DecapsFromSeed

      public static Result<byte[]> DecapsFromSeed(byte[] seed, byte[] ciphertext)
    • SerializeSecret

      public static byte[] SerializeSecret(SecretKey dk)
    • toString

      public String toString()
      Overrides:
      toString in class Object