Home
last modified time | relevance | path

Searched refs:unprotectedBytes (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DAltsTsiFrameProtector.java134 long unprotectedBytes = 0; in handleUnprotected() local
136 unprotectedBytes += buf.readableBytes(); in handleUnprotected()
139 checkArgument(unprotectedBytes > 0); in handleUnprotected()
142 long frameNum = unprotectedBytes / maxUnprotectedBytesPerFrame + 1; in handleUnprotected()
143 int lastFrameUnprotectedBytes = (int) (unprotectedBytes % maxUnprotectedBytesPerFrame); in handleUnprotected()
148 long protectedBytes = frameNum * (HEADER_BYTES + suffixBytes) + unprotectedBytes; in handleUnprotected()
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DAltsProtocolNegotiatorTest.java243 byte[] unprotectedBytes = new byte[serverFrameSize - 500]; in unprotectLargeIncomingFrame()
244 Arrays.fill(unprotectedBytes, (byte) 7); in unprotectLargeIncomingFrame()
245 ByteBuf unprotectedData = Unpooled.wrappedBuffer(unprotectedBytes); in unprotectLargeIncomingFrame()
246 unprotectedData.writerIndex(unprotectedBytes.length); in unprotectLargeIncomingFrame()
273 assertThat(unprotectedBytes.length).isEqualTo(receivedBytes.length); in unprotectLargeIncomingFrame()
274 assertThat(unprotectedBytes).isEqualTo(receivedBytes); in unprotectLargeIncomingFrame()