mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib.crypto+other: fix mut args
This commit is contained in:
parent
818c4a14e5
commit
511a3d3901
15 changed files with 53 additions and 43 deletions
|
@ -21,7 +21,7 @@ fn test_crypto_aes() {
|
|||
panic('ciphertext is not a multiple of the block size')
|
||||
}
|
||||
mode := aes.new_cbc(block, iv)
|
||||
mode.encrypt_blocks(ciphertext, ciphertext)
|
||||
mode.encrypt_blocks(mut ciphertext, ciphertext)
|
||||
|
||||
assert ciphertext.hex() == 'c210459b514668ddc44674885e4979215265a6c44431a248421254ef357a8c2a308a8bddf5623af9df91737562041cf1'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue