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
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.
This discussion was converted from issue #919 on July 17, 2022 13:14.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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