Fix encrypting keys using non-AES algorithms
This commit is contained in:
parent
afdacfad7d
commit
5bf0f96163
|
@ -45,7 +45,7 @@ export default {
|
||||||
const block_size = cipherfn.blockSize;
|
const block_size = cipherfn.blockSize;
|
||||||
|
|
||||||
let blocki = new Uint8Array(block_size);
|
let blocki = new Uint8Array(block_size);
|
||||||
const blockc = iv;
|
const blockc = iv.slice();
|
||||||
let pos = 0;
|
let pos = 0;
|
||||||
const ciphertext = new Uint8Array(plaintext.length);
|
const ciphertext = new Uint8Array(plaintext.length);
|
||||||
let i;
|
let i;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user