| java.lang.Object org.bouncycastle.crypto.tls.TlsUtils
TlsUtils | public class TlsUtils (Code) | | Some helper fuctions for MicroTLS.
|
Method Summary | |
protected static void | PRF(byte[] secret, byte[] label, byte[] seed, byte[] buf) | protected static void | checkVersion(byte[] readVersion, TlsProtocolHandler handler) | protected static void | checkVersion(InputStream is, TlsProtocolHandler handler) | protected static void | readFully(byte[] buf, InputStream is) | protected static int | readUint16(InputStream is) | protected static int | readUint24(InputStream is) | protected static long | readUint32(InputStream is) | protected static short | readUint8(InputStream is) | static byte[] | toByteArray(String str) | protected static void | writeUint16(int i, OutputStream os) | protected static void | writeUint16(int i, byte[] buf, int offset) | protected static void | writeUint24(int i, OutputStream os) | protected static void | writeUint24(int i, byte[] buf, int offset) | protected static void | writeUint32(long i, OutputStream os) | protected static void | writeUint32(long i, byte[] buf, int offset) | protected static void | writeUint64(long i, OutputStream os) | protected static void | writeUint64(long i, byte[] buf, int offset) | protected static void | writeUint8(short i, OutputStream os) | protected static void | writeUint8(short i, byte[] buf, int offset) | protected static void | writeVersion(OutputStream os) |
PRF | protected static void PRF(byte[] secret, byte[] label, byte[] seed, byte[] buf)(Code) | | |
writeUint16 | protected static void writeUint16(int i, byte[] buf, int offset)(Code) | | |
writeUint24 | protected static void writeUint24(int i, byte[] buf, int offset)(Code) | | |
writeUint32 | protected static void writeUint32(long i, byte[] buf, int offset)(Code) | | |
writeUint64 | protected static void writeUint64(long i, byte[] buf, int offset)(Code) | | |
writeUint8 | protected static void writeUint8(short i, byte[] buf, int offset)(Code) | | |
|
|