mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: replace []byte with []u8
This commit is contained in:
@ -16,13 +16,13 @@ fn test_aes_cfb() {
|
||||
println('test_aes_cfb ok')
|
||||
}
|
||||
|
||||
fn aes_cfb_en(mut src []byte, key []byte, iv []byte) {
|
||||
fn aes_cfb_en(mut src []u8, key []u8, iv []u8) {
|
||||
block := aes.new_cipher(key)
|
||||
mut mode := cipher.new_cfb_encrypter(block, iv)
|
||||
mode.xor_key_stream(mut src, src.clone())
|
||||
}
|
||||
|
||||
fn aes_cfb_de(mut src []byte, key []byte, iv []byte) {
|
||||
fn aes_cfb_de(mut src []u8, key []u8, iv []u8) {
|
||||
block := aes.new_cipher(key)
|
||||
mut mode := cipher.new_cfb_decrypter(block, iv)
|
||||
mode.xor_key_stream(mut src, src.clone())
|
||||
|
Reference in New Issue
Block a user