|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.crypto.tinytls.util.PRF
public class PRF
Field Summary | |
---|---|
private byte[] |
m_label
|
private byte[] |
m_secret
|
private byte[] |
m_seed
|
Constructor Summary | |
---|---|
PRF(byte[] secret,
byte[] label,
byte[] seed)
Constructor for a Pseudo Random Function |
Method Summary | |
---|---|
byte[] |
calculate(int length)
calculates the result of a pseudo random function |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private byte[] m_secret
private byte[] m_seed
private byte[] m_label
Constructor Detail |
---|
public PRF(byte[] secret, byte[] label, byte[] seed)
secret
- a secretlabel
- a labelseed
- a seedMethod Detail |
---|
public byte[] calculate(int length)
length
- length of the result
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |