DTLSRecordLayer(DatagramTransport transport, TlsContext context, TlsPeer peer, short contentType) { this.transport = transport; this.context = context; this.peer = peer; this.inHandshake = true; this.currentEpoch = new DTLSEpoch(0, new TlsNullCipher(context)); this.pendingEpoch = null; this.readEpoch = currentEpoch; this.writeEpoch = currentEpoch; setPlaintextLimit(MAX_FRAGMENT_LENGTH); }
DTLSRecordLayer(DatagramTransport transport, TlsContext context, TlsPeer peer, short contentType) { this.transport = transport; this.context = context; this.peer = peer; this.inHandshake = true; this.currentEpoch = new DTLSEpoch(0, new TlsNullCipher(context)); this.pendingEpoch = null; this.readEpoch = currentEpoch; this.writeEpoch = currentEpoch; setPlaintextLimit(MAX_FRAGMENT_LENGTH); }
protected TlsNullCipher createNullCipher(TlsContext context, int macAlgorithm) throws IOException { return new TlsNullCipher(context, createHMACDigest(macAlgorithm), createHMACDigest(macAlgorithm)); }
protected TlsNullCipher createNullCipher(TlsContext context, int macAlgorithm) throws IOException { return new TlsNullCipher(context, createHMACDigest(macAlgorithm), createHMACDigest(macAlgorithm)); }
void init(TlsContext context) { this.readCipher = new TlsNullCipher(context); this.writeCipher = this.readCipher; this.handshakeHash = new DeferredHash(); this.handshakeHash.init(context); setPlaintextLimit(DEFAULT_PLAINTEXT_LIMIT); }
void init(TlsContext context) { this.readCipher = new TlsNullCipher(context); this.writeCipher = this.readCipher; this.handshakeHash = new DeferredHash(); this.handshakeHash.init(context); setPlaintextLimit(DEFAULT_PLAINTEXT_LIMIT); }