mirror of
https://github.com/moparisthebest/mail
synced 2024-11-29 04:12: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
|
* A Wrapper for Forge's AES-CBC encryption
|
||||||
*/
|
*/
|
||||||
app.crypto.AesCBC = function() {
|
app.crypto.AesCBC = function(forge) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,7 +13,7 @@ test("Init", 1, function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("CBC mode", 4, 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 plaintext = aes_test.test_message;
|
||||||
var key = aes_test.util.random(aes_test.keySize);
|
var key = aes_test.util.random(aes_test.keySize);
|
||||||
|
Loading…
Reference in New Issue
Block a user