Lines Matching refs:memo

363             HandshakeMemo memo = new HandshakeMemo();  in queueUpHandshake()  local
365 memo.contentType = ContentType.HANDSHAKE.id; in queueUpHandshake()
366 memo.majorVersion = protocolVersion.major; in queueUpHandshake()
367 memo.minorVersion = protocolVersion.minor; in queueUpHandshake()
368 memo.encodeEpoch = writeEpoch; in queueUpHandshake()
369 memo.encodeCipher = writeCipher; in queueUpHandshake()
371 memo.handshakeType = buf[offset]; in queueUpHandshake()
372 memo.messageSequence = messageSequence++; in queueUpHandshake()
373 memo.acquireOffset = 0; in queueUpHandshake()
374 memo.fragment = new byte[length - 4]; // 4: header size in queueUpHandshake()
377 System.arraycopy(buf, offset + 4, memo.fragment, 0, length - 4); in queueUpHandshake()
379 handshakeHashing(memo, memo.fragment); in queueUpHandshake()
380 handshakeMemos.add(memo); in queueUpHandshake()
382 if ((memo.handshakeType == SSLHandshake.CLIENT_HELLO.id) || in queueUpHandshake()
383 (memo.handshakeType == SSLHandshake.HELLO_REQUEST.id) || in queueUpHandshake()
384 (memo.handshakeType == in queueUpHandshake()
386 (memo.handshakeType == SSLHandshake.SERVER_HELLO_DONE.id) || in queueUpHandshake()
387 (memo.handshakeType == SSLHandshake.FINISHED.id)) { in queueUpHandshake()
402 RecordMemo memo = new RecordMemo(); in queueUpChangeCipherSpec() local
404 memo.contentType = ContentType.CHANGE_CIPHER_SPEC.id; in queueUpChangeCipherSpec()
405 memo.majorVersion = protocolVersion.major; in queueUpChangeCipherSpec()
406 memo.minorVersion = protocolVersion.minor; in queueUpChangeCipherSpec()
407 memo.encodeEpoch = writeEpoch; in queueUpChangeCipherSpec()
408 memo.encodeCipher = writeCipher; in queueUpChangeCipherSpec()
410 memo.fragment = new byte[1]; in queueUpChangeCipherSpec()
411 memo.fragment[0] = 1; in queueUpChangeCipherSpec()
413 handshakeMemos.add(memo); in queueUpChangeCipherSpec()
417 RecordMemo memo = new RecordMemo(); in queueUpAlert() local
419 memo.contentType = ContentType.ALERT.id; in queueUpAlert()
420 memo.majorVersion = protocolVersion.major; in queueUpAlert()
421 memo.minorVersion = protocolVersion.minor; in queueUpAlert()
422 memo.encodeEpoch = writeEpoch; in queueUpAlert()
423 memo.encodeCipher = writeCipher; in queueUpAlert()
425 memo.fragment = new byte[2]; in queueUpAlert()
426 memo.fragment[0] = level; in queueUpAlert()
427 memo.fragment[1] = description; in queueUpAlert()
429 handshakeMemos.add(memo); in queueUpAlert()
441 RecordMemo memo = handshakeMemos.get(acquireIndex); in acquireCiphertext() local
443 if (memo.contentType == ContentType.HANDSHAKE.id) { in acquireCiphertext()
444 hsMemo = (HandshakeMemo)memo; in acquireCiphertext()
452 fragLen = memo.encodeCipher.calculateFragmentSize( in acquireCiphertext()
467 memo.encodeCipher.getExplicitNonceSize(); in acquireCiphertext()
488 fragLen = Math.min(fragLen, memo.fragment.length); in acquireCiphertext()
489 dstBuf.put(memo.fragment, 0, fragLen); in acquireCiphertext()
498 ContentType.nameOf(memo.contentType) + in acquireCiphertext()
503 long recordSN = encrypt(memo.encodeCipher, in acquireCiphertext()
504 memo.contentType, dstBuf, in acquireCiphertext()
506 ProtocolVersion.valueOf(memo.majorVersion, in acquireCiphertext()
507 memo.minorVersion)); in acquireCiphertext()
531 memo.contentType == ContentType.ALERT.id) { in acquireCiphertext()
536 return new Ciphertext(memo.contentType, in acquireCiphertext()
588 for (RecordMemo memo : handshakeMemos) { in hasAlert()
589 if (memo.contentType == ContentType.ALERT.id) { in hasAlert()
604 for (RecordMemo memo : handshakeMemos) { in setRetransmission()
605 if (memo instanceof HandshakeMemo) { in setRetransmission()
606 HandshakeMemo hmemo = (HandshakeMemo)memo; in setRetransmission()