<div dir="ltr"><div>Thanks Alex for the quick reply.</div><div><br></div><div>So in my case it can be said that I am using AES-256-CTR cipher? Because I was calling it AES-128-CTR and people were asking me why I am using a smaller key.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 3, 2023 at 9:09 AM Alex Gaynor <<a href="mailto:alex.gaynor@gmail.com">alex.gaynor@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This is not correct, block size and key size are not the same thing<br>
for symmetric encryption algorithms.<br>
<br>
AES's block size is always 128-bit, it's not something cryptography<br>
chooses to use, it's the definition of the algorithm.<br>
<br>
Alex<br>
<br>
On Thu, Feb 2, 2023 at 8:02 PM Arshad Khan <<a href="mailto:khan.m.arshad@gmail.com" target="_blank">khan.m.arshad@gmail.com</a>> wrote:<br>
><br>
> Hello<br>
><br>
> I have a question regarding AES in python cryptography which uses a block size of 128 bits. Currently I am using 256 bit keys with AES in CTR mode. However, internally the python cryptography uses a block size of 128. My understanding is that block size and key size are the same for symmetric encryption. How does a 256 bits key work in this case? Appreciate if someone could provide some explanation about this and clear my confusion.<br>
><br>
> Thanks<br>
> Arshad<br>
> _______________________________________________<br>
> Cryptography-dev mailing list<br>
> <a href="mailto:Cryptography-dev@python.org" target="_blank">Cryptography-dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/cryptography-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/cryptography-dev</a><br>
<br>
<br>
<br>
-- <br>
All that is necessary for evil to succeed is for good people to do nothing.<br>
_______________________________________________<br>
Cryptography-dev mailing list<br>
<a href="mailto:Cryptography-dev@python.org" target="_blank">Cryptography-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/cryptography-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/cryptography-dev</a><br>
</blockquote></div>