BrightWind / crypto-js

Automatically exported from code.google.com/p/crypto-js
0 stars 0 forks source link

Type a is undefined in rollup version of aes.js line 27. #136

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Used the sample code:

var encrypted = CryptoJS.AES.encrypt("Message", "Secret Passphrase", { mode: 
CryptoJS.mode.CFB, padding: CryptoJS.pad.AnsiX923 });

What is the expected output? What do you see instead?
I should get back an encrypted message.  I got an error.

In Chrome (version 35.0.1916.153 m) the error is (with stack trace):
Uncaught TypeError: Cannot read property 'createEncryptor' of undefined 
aes.js:27
d.BlockCipher.v.extend.reset aes.js:27
d.Cipher.t.extend.init aes.js:24
c.hasOwnProperty.c.init aes.js:7
c.hasOwnProperty.c.init aes.js:7
c.hasOwnProperty.c.init aes.js:7
l.Base.create aes.js:7
d.Cipher.t.extend.createEncryptor aes.js:24
d.SerializableCipher.l.extend.encrypt aes.js:29
d.PasswordBasedCipher.a.extend.encrypt aes.js:31
encrypt aes.js:25
AESDecrypt main.js:88
onclick

In Firefox (version 30.0) I got:

TypeError: a is undefined aes.js:27

What version of the product are you using? On what operating system?
3.1.2, on Windows 8.

Please provide any additional information below.

Original issue reported on code.google.com by yook...@gmail.com on 16 Jul 2014 at 5:49

GoogleCodeExporter commented 8 years ago
To accurately reproduce the problem, can your sample code also show the JS 
files you're including? Because, for example, the mode and padding you're using 
are not included in the AES rollup.

Original comment by Jeff.Mott.OR on 16 Jul 2014 at 6:10

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Resolved.  Failed to notice that you needed to include each mode and padding 
source file

Original comment by yook...@gmail.com on 16 Jul 2014 at 6:17

GoogleCodeExporter commented 8 years ago

Original comment by Jeff.Mott.OR on 16 Jul 2014 at 6:51