Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

I need an implementation of AES(Rijndael) in java that allows use of a 320-bit key.

Please suggest a reliable implementation

share|improve this question

closed as off topic by CodesInChaos, mikeazo Feb 8 '13 at 15:21

Questions on Cryptography Stack Exchange are expected to relate to cryptography within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

AES does not include 320 bits as one of the key lengths in its specification. –  Jonathan Garber Feb 8 '13 at 14:41
Key derivation function. –  Thomas Feb 8 '13 at 14:42
@JonathanGarber ok.. Do you know of a non standard implementation of AES that allows 320bit key.. –  userSeven7s Feb 8 '13 at 14:43
Why do you want 320 bit keys? 256 is already more than enough. If it's because your key material is that large, just hash it with SHA-256 to get a 256 bit key. –  CodesInChaos Feb 8 '13 at 14:58
If it's "nonstandard", it's not AES. Precisely why do you need AES with a 320 bit keys? Why won't a key derivation function followed by a standard AES be appropriate? Why won't another cipher that takes 320 bit keys be appropriate? –  poncho Feb 8 '13 at 14:59
show 1 more comment

1 Answer 1

AES only comes in variations with key sizes of 128, 192 or 256 bits. If your issue is that the key you want to use is 320 bits, you can use a key derivation algorithm such as PBKDF2 to transform your secret into a key with a valid length.

share|improve this answer
If you got a key with 320 bits of entropy then you would not need a PBKDF, but a KBKDF, e.g. one of those outlined in SP 800-108 or HKDF. Using PBKDF2 would not be efficient, as it has been designed to be slow. –  owlstead Feb 9 '13 at 1:47
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.