lua-resty-string icon indicating copy to clipboard operation
lua-resty-string copied to clipboard

help: Is the option `salt` in `new` function in `aes.lua` file mean initialization value?

Open ccxhwmy opened this issue 2 years ago • 1 comments

Hi~ I am reading python code about Crypto.Cipher in website: https://www.pycryptodome.org/src/cipher/classic#ctr-mode I found the new function defined to Crypto.Cipher.<algorithm>.new(key, mode, *, nonce=None, initial_value=None, counter=None) Is the initial_value means the salt in : https://github.com/openresty/lua-resty-string/blob/78e5020229718c557484191c891a68097907d818/lib/resty/aes.lua#L120

Thank you~

ccxhwmy avatar Aug 17 '22 08:08 ccxhwmy