whyoleg/cryptography-kotlin

ivSize hardcoded

Closed this issue · 2 comments

Hi!

I'm trying to decode some data with an IV of 16 bytes, but it seems the ivSize is hardcoded to 12 bytes in JdkAesGcm.kt. Is there a way around this?

Thanks!

Hmm, thank you for reporting this! I will take a closer look at what could be done here for the upcoming release.
Initially, I thought that most of the providers didn't support IVs bigger than 12 bytes, but it looks like it should be possible.

I don't think there is a workaround for now, but hopefully, the next release will be by the end of June!

That's awesome, thanks!