21.03.2013 Views

Problem - Kevin Tafuro

Problem - Kevin Tafuro

Problem - Kevin Tafuro

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

In such cases, you need to be able to read the message incrementally, yet have some<br />

indication of where the message stops, so you know where to stop decrypting. Such<br />

scenarios require a special message format.<br />

In this situation, we recommend sending data in fixed-size “frames.” At the end of<br />

each frame is a field that indicates the length of the data that was in that frame, and<br />

a field that indicates whether the frame represents the end of a message. In nonfull<br />

frames, the bytes from the end of the data to the informational fields should be set<br />

to 0.<br />

See Also<br />

Recipes 4.11, 5.10, 5.16, 6.21, 8.15, 13.2<br />

Building an Authenticated Secure Channel Without SSL | 501<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!