Use byteArray for I/O of cipher operations

This commit is contained in:
MikeCAT 2025-02-19 18:03:31 +00:00
parent 1b8c229df2
commit 6272d0e809
14 changed files with 104 additions and 85 deletions

View file

@ -117,8 +117,8 @@ TestRegister.addApiTests([
const result = chef.help("tripleDESDecrypt");
assert.strictEqual(result[0].name, "Triple DES Decrypt");
assert.strictEqual(result[0].module, "Ciphers");
assert.strictEqual(result[0].inputType, "string");
assert.strictEqual(result[0].outputType, "string");
assert.strictEqual(result[0].inputType, "byteArray");
assert.strictEqual(result[0].outputType, "byteArray");
assert.strictEqual(result[0].description, "Triple DES applies DES three times to each block to increase key size.<br><br><b>Key:</b> Triple DES uses a key length of 24 bytes (192 bits).<br><br><b>IV:</b> The Initialization Vector should be 8 bytes long. If not entered, it will default to 8 null bytes.<br><br><b>Padding:</b> In CBC and ECB mode, PKCS#7 padding will be used as a default.");
assert.strictEqual(result[0].args.length, 5);
}),