aws / aws-lc-rs

aws-lc-rs is a cryptographic library using AWS-LC for its cryptographic operations. The library strives to be API-compatible with the popular Rust library named ring.
Other
318 stars 49 forks source link

Decrypting AES ECB payload #573

Closed rmullin-apptio closed 1 week ago

rmullin-apptio commented 3 weeks ago

Security issue notifications

If you discover a potential security issue in AWS-LC for Rust we ask that you notify AWS Security via our vulnerability reporting page. Please do not create a public github issue, if in doubt contact AWS security first.

Problem:

I have incoming payloads that for historical purposes are encrypted using AES in ECB mode (this is the default AES implementation for Java). From what I've seen, the crate uses ecb internally through the aws-lc library, but the only externally exposed implementations are CTR and CBC. Is there any way to expose that algorithm or use a workaround that

Solution:

A description of the possible solution in terms of AWS-LC for Rust architecture. Highlight and explain any potentially controversial design decisions taken.

Requirements / Acceptance Criteria:

What must a solution address in order to solve the problem? How do we know the solution is complete?

Either a support for ECB mode, or a workaround for using ECB mode with the existing API.

Out of scope:

Is there anything the solution will intentionally NOT address?

skmcgrail commented 1 week ago

Hello @rmullin-apptio,

Can you confirm whether you are using AES/ECB/NoPadding or AES/ECB/PKCS5Padding in your Java application? Just trying to figure out if you need ECB with with or without padding.

Thanks!