21.03.2013 Views

Problem - Kevin Tafuro

Problem - Kevin Tafuro

Problem - Kevin Tafuro

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

spc_omac_update(ctx1, text, INTERLEAVE_SIZE);<br />

spc_omac_update(ctx2, text + INTERLEAVE_SIZE, INTERLEAVE_SIZE);<br />

text += 2 * INTERLEAVE_SIZE;<br />

len -= 2 * INTERLEAVE_SIZE;<br />

}<br />

if (len > INTERLEAVE_SIZE) {<br />

spc_omac_update(ctx1, text, INTERLEAVE_SIZE);<br />

spc_omac_update(ctx2, text + INTERLEAVE_SIZE, len - INTERLEAVE_SIZE);<br />

} else spc_omac_update(ctx1, text, len);<br />

spc_omac_final(ctx1, tmp);<br />

spc_omac_update(ctx2, tmp, sizeof(tmp));<br />

spc_omac_final(ctx2, out);<br />

return out;<br />

}<br />

See Also<br />

Recipes 5.11, 6.12 through 6.14<br />

306 | Chapter 6: Hashes and Message Authentication<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!