|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.mixminion.message.MixMinionCryptoUtil
public class MixMinionCryptoUtil
Some Helping Methods for the MixMinion
Constructor Summary | |
---|---|
MixMinionCryptoUtil()
|
Method Summary | |
---|---|
(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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MixMinionCryptoUtil()
Method Detail |
---|
public static byte[] randomArray(int len)
len
- int
static 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
- int
public 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |