1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-22 07:18:49 -05:00

inject forge as dependency

This commit is contained in:
Tankred Hase 2013-05-14 13:43:52 +02:00
parent 0a6ae5d599
commit 3e12c7eae6
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/**
* A Wrapper for Forge's AES-CBC encryption
*/
app.crypto.AesCBC = function() {
app.crypto.AesCBC = function(forge) {
'use strict';
/**

View File

@ -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);