Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Oct 1, 2015 · 4 comments
Closed

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant