fedper95
fedper95
I'm experiencing the same issue. I have debugged `aes_gcm.dart` in the lines pointed by @stevenspiel and the mac I get from the `SecretBox` when encrypting with `encryptString` and the bytes...
Should we follow any steps in order to create a `SecretBox` and `Mac` from bytes? I'm doing it this way (also tried without converting the bytes list to UInt8List) ```...
Mac bytes from the `SecretBox` obtained from `encryptString` method: [212,112,100,80,198,148,209,212,53,47,209,41,92,167,20,129] Mac bytes recreated by the code I shared in my last comment: [212,112,100,80,198,148,209,212,53,47,209,41,92,167,20,129] Mac received by `decryptSync`: [212,112,100,80,198,148,209,212,53,47,209,41,92,167,20,129] Calculated mac:...
Even when passing the same `SecretBox` directly from `encrypt` to `decrypt`, I get the same scenario. If it helps, I'm using `X25519` to create the keys with the following code:...
I tried decrypting in the same method I encrypted (the only difference seems to be the sharedKey) and it worked. Could it be the error gets thrown when the key...