summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Martin <jmartin@sentryds.com>2011-05-02 17:20:05 -0500
committerJoel Martin <jmartin@sentryds.com>2011-05-02 17:20:05 -0500
commit8b52ec47560c6d4cfd3da996f5861a4f1696fe88 (patch)
tree6b725d73c4d9365554d9452688fa1c4c17c06492
parentee27864813303e8395593e55675538dbacbed439 (diff)
downloadweb-socket-js-8b52ec47560c6d4cfd3da996f5861a4f1696fe88.tar.gz
com/gsolo/encryption/SHA1.as: stop compile warnings.
-rw-r--r--flash-src/com/gsolo/encryption/SHA1.as6
1 files changed, 3 insertions, 3 deletions
diff --git a/flash-src/com/gsolo/encryption/SHA1.as b/flash-src/com/gsolo/encryption/SHA1.as
index 9db42a5..12f64c5 100644
--- a/flash-src/com/gsolo/encryption/SHA1.as
+++ b/flash-src/com/gsolo/encryption/SHA1.as
@@ -76,7 +76,7 @@ package com.gsolo.encryption {
x[len >> 5] |= 0x80 << (24 - len % 32);
x[((len + 64 >> 9) << 4) + 15] = len;
- var w:Array = Array(80);
+ var w:Array = new Array(80);
var a:Number = 1732584193;
var b:Number = -271733879;
var c:Number = -1732584194;
@@ -136,7 +136,7 @@ package com.gsolo.encryption {
var bkey:Array = str2binb (key);
if (bkey.length > 16) bkey = core_sha1 (bkey, key.length * chrsz);
- var ipad:Array = Array(16), opad:Array = Array(16);
+ var ipad:Array = new Array(16), opad:Array = new Array(16);
for(var i:Number = 0; i < 16; i++) {
ipad[i] = bkey[i] ^ 0x36363636;
opad[i] = bkey[i] ^ 0x5C5C5C5C;
@@ -215,4 +215,4 @@ package com.gsolo.encryption {
return str;
}
}
-} \ No newline at end of file
+}