public class MixMinionCryptoUtil
extends java.lang.Object
Constructor and Description |
---|
MixMinionCryptoUtil() |
Modifier and Type | Method and Description |
---|---|
(package private) static byte[] |
compressData(byte[] message)
this Method is for compressing some Data, with the ZLIB-Standard
|
(package private) static byte[] |
createPRNG(byte[] key,
int len)
Creates a octet-array using Cryptographic Stream generator
|
(package private) static byte[] |
decompressData(byte[] message) |
static byte[] |
Encrypt(byte[] K,
byte[] M)
Die Encrypt-Funktion nach der MixMinion-Spec
|
private static byte[] |
GZIPcompressData(byte[] message)
this Method is for compressing some Data
|
private static byte[] |
GZIPextractData(byte[] payload)
this Method is for extracting some Data
|
static byte[] |
hash(byte[] x)
SHA1Digest of x
|
static byte[] |
randomArray(int len)
Creates an octet-array fills with random Bytes
|
static byte[] |
SPRP_Decrypt(byte[] K,
byte[] M)
Die SPRP_Encrypt-Funktion nach der MixMinion-Spec
|
static byte[] |
SPRP_Encrypt(byte[] K,
byte[] M)
Die SPRP_Encrypt-Funktion nach der MixMinion-Spec
|
static java.util.Vector |
subVector(java.util.Vector v,
int offset,
int len) |
(package private) static byte[] |
xor(byte[] one,
byte[] two)
xor of two byte[]
|
private static byte[] |
ZIPcompressData(byte[] message)
this Method is for compressing some Data
|
private static byte[] |
ZIPextractData(byte[] payload)
this Method is for extracting some Data
|
public static byte[] randomArray(int len)
len
- intstatic byte[] xor(byte[] one, byte[] two)
one
- byte[]two
- byte[]public static byte[] hash(byte[] x)
x
- byte[]public static java.util.Vector subVector(java.util.Vector v, int offset, int len)
v
- offset
- len
- public static byte[] Encrypt(byte[] K, byte[] M)
static byte[] createPRNG(byte[] key, int len)
key
- byte[]len
- intpublic static byte[] SPRP_Encrypt(byte[] K, byte[] M)
k
- M
- public static byte[] SPRP_Decrypt(byte[] K, byte[] M)
k
- M
- static byte[] compressData(byte[] message)
static byte[] decompressData(byte[] message)
private static byte[] ZIPcompressData(byte[] message)
private static byte[] ZIPextractData(byte[] payload)
private static byte[] GZIPcompressData(byte[] message)
private static byte[] GZIPextractData(byte[] payload)
Copyright © 2023. All rights reserved.