I've added a pull request to github for a change to the crypto module that allows true streaming of AES CTR mode.  I'm afraid I didn't get things quite right on the formatting of the pull request (I'm more familiar with Mercurial than Git), but here it is, anyway: <a href="https://github.com/erlang/otp/pull/12">https://github.com/erlang/otp/pull/12</a><div>

<br></div><div>Basically, this change makes AES CTR behave similarly to the RC4 implementation.</div><div><br></div><div>An example usage looks like:</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">State = crypto:aes_ctr_state_init(Key, IV),</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">{ Cipher, State2 } = crypto:aes_ctr_encrypt_with_state(State, Data),<br clear="all"><meta charset="utf-8">{ Cipher2, State3 } = crypto:aes_ctr_encrypt_with_state(State2, Data),<br clear="all">

</font><br></div><div>I've used the existing AES CTR tests to implement tests for it as well.  If I need to reformat the patch, I can certainly do that, but it really pretty minor.</div><div><br></div><div>tj</div><div>

-- <br><b><span style="font-size:large">Travis Jensen</span></b><div><b></b><span style="font-size:large"><b><br></b></span>Read the Software Maven @ <a href="http://softwaremaven.innerbrane.com/" target="_blank">http://softwaremaven.innerbrane.com/</a><br>

Read my LinkedIn profile @ <a href="http://www.linkedin.com/in/travisjensen" target="_blank">http://www.linkedin.com/in/travisjensen</a><br>Read my Twitter mumblings @ <a href="http://twitter.com/SoftwareMaven" target="_blank">http://twitter.com/SoftwareMaven</a><br>

Send me email @ <a href="mailto:travis.jensen@gmail.com" target="_blank">travis.jensen@gmail.com</a><div><br></div><div><i>*What kind of guy calls himself the Software Maven???*</i></div></div><br>
</div>