mirror of
https://github.com/moparisthebest/mail
synced 2024-11-25 10:22:18 -05:00
inject forge as dependency
This commit is contained in:
parent
0a6ae5d599
commit
3e12c7eae6
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* A Wrapper for Forge's AES-CBC encryption
|
||||
*/
|
||||
app.crypto.AesCBC = function() {
|
||||
app.crypto.AesCBC = function(forge) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
|
@ -13,7 +13,7 @@ test("Init", 1, function() {
|
||||
});
|
||||
|
||||
test("CBC mode", 4, function() {
|
||||
var aes = new app.crypto.AesCBC();
|
||||
var aes = new app.crypto.AesCBC(forge);
|
||||
|
||||
var plaintext = aes_test.test_message;
|
||||
var key = aes_test.util.random(aes_test.keySize);
|
||||
|
Loading…
Reference in New Issue
Block a user