MAC Validaton When Cipher Key Exists

This is an update on the previous inquiry. It seems that I was not applying the PKCS#7 unpadding on the cipher key after decrypting it. This was affecting the Expected MAC output.

If anyone is interested in bitwarden encryption, padding is extremely important!

I hope this will help someone.

Cheers,
Ahmad.

1 Like