Lines Matching refs:slice
38 this.client_writeKey = key_block.slice(0, 16);
39 this.client_writeIV = key_block.slice(32, 36);
83 const record = buf.slice(offset, 5);
85 const length = record.slice(3, 5).readUInt16BE(0);
87 let remaining = buf.slice(offset, offset + length);
94 return buf.slice(offset);
101 const server_random = buf.slice(6, 6 + 32);
107 const handshake = buf.slice(0, offset + length);
110 const remaining = buf.slice(offset);
115 const type = plain.slice(0, 1);
116 const version = plain.slice(1, 3);
118 const iv = Buffer.concat([this.client_writeIV.slice(0, 4), nonce]);
122 const aad = Buffer.concat([write_seq, plain.slice(0, 5)]);
124 const encrypted1 = bob.update(plain.slice(5));