This repository has been archived by the owner on Oct 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forked as3crypto; Fixed warnings/compile errors; Bump version to v1.3a
- Loading branch information
0 parents
commit 131a58b
Showing
161 changed files
with
25,788 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
CHANGELOG | ||
|
||
v1.3a | ||
- Fixed AESKey's static initializer | ||
- Removed all warnings related to missing semi-colons and unused imports | ||
- Removed tool/IDE-specific files | ||
- Removed demo files | ||
- Added LICENSE & CHANGELOG | ||
- Added test-harness which logs to Flash output | ||
|
||
v1.3 | ||
- TLS: partial TLS 1.0 support (RSA only), with TLSSocket and STARTTLS support. | ||
- cert: Basic X509 (v1 and v2) Certificate parsing and validation | ||
- cert: Builtin Root CAs, ripped from Mozilla. (see MozillaRootCertificates.as) | ||
- DER: bug fix in parsing of UTCTime | ||
- DER: limited support for outputing ASN-1 structures as DER (as little as needed for X509 cert. signing to work.) | ||
- RSA: support for RSA signing/verifying (needed for TLS cert validation) | ||
- hash: MD5 and MD2 classes no longer alter their source data | ||
- secret key: RC4 doesn't reset its state before every encrypt/decrypt operation anymore. If you need that behavior, you need to use .init(key) before each call. | ||
|
||
v1.2 | ||
- math: Completed BigInteger support. Moved BigInteger under com.hurlant.math | ||
- public key: RSA decrypt and key generation | ||
- crud: basic DER/PEM support to parse RSA keys (X.509 SubjectPublicKeyInfo and PKCS#1 RSAPrivateKey) | ||
- random: support for TLS-PRF; weak attempt at seeding Random. | ||
- hash: added MD2. slow legacy stuff. | ||
- modes: CFB, CFB8 and OFB padding bug fixes | ||
- secret key: TripeDES bug fix | ||
|
||
v1.1 | ||
- secret key: DES, 3DES, BlowFish | ||
- mode: CTR, SimpleIV | ||
- added toString() to each algorithm | ||
- added dispose() to each algorithm. dispose() attempts to clear keys and states from the memory, but it is not guaranteed to work. | ||
|
||
v1.0 (Initial release) | ||
- public key: RSA encrypt | ||
- secret key: AES, XTEA, RC4 | ||
- hash: MD5, SHA-1, SHA-224, SHA-256 | ||
- HMAC | ||
- modes: ECB, CBC, CFB, CFB8, OFB | ||
- converters: Base64, Hex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
A cryptography library written in Actionscript 3 that provides several common algorithms. This version also introduces a TLS engine (TLS is commonly known as SSL) | ||
|
||
Protocols: TLS 1.0 support (partial) | ||
Certificates: X.509 Certificate parsing and validation, built-in Root CAs. | ||
Public Key Encryption: RSA (encrypt/decrypt, sign/verify) | ||
Secret Key Encryption: AES, DES, 3DES, BlowFish, XTEA, RC4 | ||
Confidentiality Modes: ECB, CBC, CFB, CFB8, OFB, CTR | ||
Hashing Algorithms: MD2, MD5, SHA-1, SHA-224, SHA-256 | ||
Paddings available: PKCS#5, PKCS#1 type 1 and 2 | ||
Other Useful Stuff: HMAC, Random, TLS-PRF, some ASN-1/DER parsing | ||
|
||
This library is offered under the BSD license and includes several derivative works from Java, C and JavaScript sources. | ||
|
||
Copyright (c) 2007 Henri Torgemane | ||
All Rights Reserved. | ||
|
||
Address all questions regarding this license to: | ||
|
||
Henri Torgemane <henri_torgemane@yahoo.com> | ||
|
||
BigInteger, RSA, Random and ARC4 are derivative works of the jsbn library | ||
(http://www-cs-students.stanford.edu/~tjw/jsbn/) | ||
The jsbn library is Copyright (c) 2003-2005 Tom Wu (tjw@cs.Stanford.EDU) | ||
|
||
MD5, SHA1, and SHA256 are derivative works (http://pajhome.org.uk/crypt/md5/) | ||
Those are Copyright (c) 1998-2002 Paul Johnston & Contributors (paj@pajhome.org.uk) | ||
|
||
SHA256 is a derivative work of jsSHA2 (http://anmar.eu.org/projects/jssha2/) | ||
jsSHA2 is Copyright (c) 2003-2004 Angel Marin (anmar@gmx.net) | ||
|
||
AESKey is a derivative work of aestable.c (http://www.geocities.com/malbrain/aestable_c.html) | ||
aestable.c is Copyright (c) Karl Malbrain (malbrain@yahoo.com) | ||
|
||
BlowFishKey, DESKey and TripeDESKey are derivative works of the Bouncy Castle Crypto Package (http://www.bouncycastle.org) | ||
Those are Copyright (c) 2000-2004 The Legion Of The Bouncy Castle | ||
|
||
Base64 is copyright (c) 2006 Steve Webster (http://dynamicflash.com/goodies/base64) | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
Redistributions of source code must retain the above copyright notice, this list | ||
of conditions and the following disclaimer. Redistributions in binary form must | ||
reproduce the above copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
Neither the name of the author nor the names of its contributors may be used to endorse | ||
or promote products derived from this software without specific prior written permission. | ||
|
||
THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY | ||
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, | ||
INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER | ||
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF | ||
THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT | ||
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
|
||
Additionally, the MD5 algorithm is covered by the following notice: | ||
|
||
Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All rights reserved. | ||
|
||
License to copy and use this software is granted provided that it | ||
is identified as the "RSA Data Security, Inc. MD5 Message-Digest | ||
Algorithm" in all material mentioning or referencing this software | ||
or this function. | ||
|
||
License is also granted to make and use derivative works provided | ||
that such works are identified as "derived from the RSA Data | ||
Security, Inc. MD5 Message-Digest Algorithm" in all material | ||
mentioning or referencing the derived work. | ||
|
||
RSA Data Security, Inc. makes no representations concerning either | ||
the merchantability of this software or the suitability of this | ||
software for any particular purpose. It is provided "as is" | ||
without express or implied warranty of any kind. | ||
|
||
These notices must be retained in any copies of any part of this | ||
documentation and/or software. |
Binary file not shown.
Binary file not shown.
Empty file.
Oops, something went wrong.