jedisct1 / rust-aes-wasm

Fast(er) AES-based constructions for WebAssembly and Rust.
MIT License
15 stars 1 forks source link

Possible to add AES-256-CCM? #1

Open mgibbs189 opened 5 months ago

mgibbs189 commented 5 months ago

@jedisct1 Thanks for your work on this project! Would adding AES-256-CCM support be a possibility?

jedisct1 commented 5 months ago

Hi!

Unfortunately AES-CCM is slow in software, has low usage limits, and is not used much (besides a few things such as the Zigbee protocol, but even then, it's a variant).

For these reasons, it's unlikely to be implemented in the Zig standard library. I'm not aware of a standalone Zig implementation either.

So... I don't know :) If someone writes an implementation, I can add it to this package. But since I don't have any use case for AES-CCM, this is not something I had planned to implement in a near future either. If I ever get an opportunity to get paid to implement it, why not :) But otherwise, to be honest, probably not.

jedisct1 commented 5 months ago

Just curious: what is your use case for AES-CCM?

mgibbs189 commented 5 months ago

@jedisct1 No worries, I understand :)

I'd much prefer AES-GCM too, but am stuck with AES-CCM for this specific hardware device.