You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now we can not effective implement CTR algorithm with custom counter.
But if we implement resetiv method then we can write:
localaes=crypto.encrypt.new('aes-256-ctr', KEY)
localIV= {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
forb, einichunks(msg, block_size) doinc_iv(IV)
aes:resetiv(IV)
localchunk=string.sub(msg, b, e)
chunk=aes:update(chunk) -- or even better aes:update(msg, b, e) end
I realy do not know is this valid in OpenSSL update iv, but it work.
in my test this method 10 times slower then simple aes-256-crt.
this my implementation moteus-iv
The text was updated successfully, but these errors were encountered:
Now we can not effective implement CTR algorithm with custom counter.
But if we implement resetiv method then we can write:
I realy do not know is this valid in OpenSSL update iv, but it work.
in my test this method 10 times slower then simple aes-256-crt.
this my implementation moteus-iv
The text was updated successfully, but these errors were encountered: