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

Open
#90 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
lua
Domain
cryptography

Research direction

Start with lib/resty/aes.lua at line 120 and compare the option's documented behavior with PyCryptodome's CTR-mode documentation. Done means clarifying whether salt corresponds to initial_value, with the explanation recorded in the appropriate project documentation or issue response.

Written by the indexing model from the issue text.

Description

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~

Dominant language
Lua
Stars
443
Forks
143
Avg merge
2h 31m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openresty/lua-resty-string

All issues in openresty/lua-resty-string

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.