Class __default
java.lang.Object
io.github.mahmoudimus.quic.internal.verifiedcrypto.NativeMlKem.__default
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SecretKeyAssembleKey(byte[] retained, int[][] secret, int[][] a, int[][] t, byte[] rho, byte[] encoded, byte[] hash) static SecretKeyBuildKey(byte[] seed, int[][] a, byte[] rho, byte[] sigma) static int[]CipherPart(byte[] c, int i) static voidCopyInto(byte[] a, byte[] b, int start) static voidCopyInts(int[] a, int[] b) static Result<byte[]> static Result<byte[]> DecapsAndDestroy(SecretKey dk, byte[] ciphertext) static Result<byte[]> DecapsFromSeed(byte[] seed, byte[] ciphertext) static int[][]DecodeCipherU(byte[] c) static DecodeResultDecodeKeyPart(byte[] bytes, int i) static byte[]Decrypt(int[][] secret, byte[] ciphertext) static int[]DecryptMask(int[][] secret, byte[] ciphertext) static int[]Dot(int[][] a, int[][] b) static int[]DotStep(int[] accumulator, int[] a, int[] b) static Result<Encapsulation> Encaps(byte[] bytes, byte[] m) static dafny.Tuple2EncodePublic(int[][] t, byte[] rho) static byte[]EncodeVector(int[][] a, int d) static byte[]static byte[]EncryptU(int[][] a, int[][] y, byte[] coins) static byte[]EncryptV(int[][] t, int[][] y, byte[] m, byte[] coins) static int[]Expand(byte[] bytes, int d) static Result<int[][]> ExpandMatrix(byte[] rho) static byte[]Join(byte[] a, byte[] b) KeyGen(byte[] seed) static dafny.Tuple2KeyMaterial(int[][] a, byte[] sigma) static int[][]MatrixProduct(int[][] a, int[][] b, int[][] e, boolean transposed, boolean inverse) static int[]Noise(byte[] seed, int nonce) static int[][]NoiseVector(byte[] seed, int start, boolean ntt) Parse(byte[] bytes) static Result<int[][]> ParseWords(byte[] bytes) static int[][]Row(int[][] a, int i, boolean transposed) static int[]RowProduct(int[][] a, int[][] b, int[] e, int i, boolean transposed, boolean inverse) static Result<int[]> Sample(byte[] rho, int i, int j) static Result<int[]> SamplePrefix(byte[] bytes) static byte[]Select(byte[] c, byte[] expected, byte[] candidate, byte[] fallback) static byte[]static byte[]Slice(byte[] a, int start, int length) static byte[]Tag(byte[] a, byte tag) toString()static voidWipeBytePreservingKey(byte[] a) static voidWipeBytes(byte[] a) static voidWipeDecapsBuffers(byte[] m, byte[] input, byte[] g, byte[] z, byte[] rejectionInput, byte[] fallback, byte[] coins, byte[] expected, byte[] candidate) static voidWipeInts(int[] a) static voidWipePolys(int[][] a)
-
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
-
Sample
-
ExpandMatrix
-
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
-
KeyGen
-
DecodeKeyPart
-
ParseWords
-
Parse
-
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
-
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
-
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
-
DecapsAndDestroy
-
DecapsFromSeed
-
SerializeSecret
-
toString
-