<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hello,<BR>
&nbsp;<BR>
I am trying to use pycrypto to decrypt a file using AES in CTR mode.&nbsp; Currently I have a file with a counter value store in the first 16 bytes of the file.&nbsp; I see in most of the examples the first 8 bytes are stored in the counter value as part of a prefix with the last section starting with zero and incrementing up.&nbsp; My question is that if I want to have a truly random counter value. Do I need to create my own count class to handle the increment or can i use Crypto.Util.counter class.<BR>
&nbsp;<BR>
I am trying to use the Crypto.Util.counter class but i keep getting errors on CTR: counter returned not 16 bytes.<BR>
&nbsp;<BR>
Thanks,<BR>
&nbsp;<BR>                                               </div></body>
</html>