AES update algorithm. #936
yermukhanbet
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, thanks for great work!
Me and my team are trying to write encryption algorithm, which has AES as one of the steps.
We got python function with the same encryption algorithm, which runs perfectly fine:
Remark: we put static values in order to check if the input and output will be same between swift and python functions for encryption.
However, when we compare the outputs between swift and python functions, the value of outputs are different from each other. After debugging, we realized that all encrypted values (password and tag) are the same until it hits update() function in AES, after which encrypted values(password and tag) become different compared to python output.
After some research, we found out that there are many different types of authenticated encryption modes( GCM, which we are using ).
However, it seems like python function and swift functions are using the same modes. Therefore, we are kind of confused about different output values.
We are not sure if we are using update function properly, so we were curious if there are any work around with this issue.
Any ideas or solutions to this?
Beta Was this translation helpful? Give feedback.
All reactions