Skip to content

Wrong description of incremental encryption #771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Gerold103 opened this issue May 7, 2019 · 0 comments
Closed

Wrong description of incremental encryption #771

Gerold103 opened this issue May 7, 2019 · 0 comments
Assignees
Labels
bug Something isn't working reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality

Comments

@Gerold103
Copy link
Contributor

https://www.tarantool.io/en/doc/2.1/reference/reference_lua/crypto/#incremental-methods-in-the-crypto-module
The example:

c = crypto.cipher.aes192.cbc.encrypt.new()
c:init()
c:update('A', 'key')
c:update('B', 'key')
print(c:result())
c:free()

It is wrong. key should be passed to new method, not update, and only once. Also, iv argument is mandatory.

@lenkis lenkis added 1.10 bug Something isn't working reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality labels May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

No branches or pull requests

3 participants