You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The decryption process currently gets hung on up a non-matching MAC between what the backup has and what we're expecting.
My major frustration and confusion at the moment is that the Java implementation allows for a 10-byte MAC, but the Rust crypto library produces 32-byte MACs following the same steps; obviously there's not going to be a time when these are equivalent. I'm not sure if it's a fundamental difference in how the Rust and Java libraries work.
I can process what I've written for the decryption process, but something along the line isn't exactly as it should be compared to the Java implementation. I'm diving into source for both languages to see where they differ. If anyone can point me to an open implementation of the javax.crypto library, I'd be grateful (as my version of OpenJDK doesn't have it).
The text was updated successfully, but these errors were encountered:
Update: I've traced down the only issue to be the difference in how the Java and Rust libraries implement their CTR AES decryption. Regardless of key size I'm not getting a decryptable result, so something's up with one of them.
The decryption process currently gets hung on up a non-matching MAC between what the backup has and what we're expecting.
My major frustration and confusion at the moment is that the Java implementation allows for a 10-byte MAC, but the Rust crypto library produces 32-byte MACs following the same steps; obviously there's not going to be a time when these are equivalent. I'm not sure if it's a fundamental difference in how the Rust and Java libraries work.I can process what I've written for the decryption process, but something along the line isn't exactly as it should be compared to the Java implementation. I'm diving into source for both languages to see where they differ. If anyone can point me to an open implementation of the
javax.crypto
library, I'd be grateful (as my version of OpenJDK doesn't have it).The text was updated successfully, but these errors were encountered: