3
code.google.com/p/crypto-js
4
(c) 2009-2012 by Jeff Mott. All rights reserved.
5
code.google.com/p/crypto-js/wiki/License
11
var WordArray = C_lib.WordArray;
13
var SHA256 = C_algo.SHA256;
16
* SHA-224 hash algorithm.
18
var SHA224 = C_algo.SHA224 = SHA256.extend({
19
_doReset: function () {
20
this._hash = WordArray.create([
21
0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
22
0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4
26
_doFinalize: function () {
27
SHA256._doFinalize.call(this);
29
this._hash.sigBytes -= 4;
34
* Shortcut function to the hasher's object interface.
36
* @param {WordArray|string} message The message to hash.
38
* @return {WordArray} The hash.
44
* var hash = CryptoJS.SHA224('message');
45
* var hash = CryptoJS.SHA224(wordArray);
47
C.SHA224 = SHA256._createHelper(SHA224);
50
* Shortcut function to the HMAC's object interface.
52
* @param {WordArray|string} message The message to hash.
53
* @param {WordArray|string} key The secret key.
55
* @return {WordArray} The HMAC.
61
* var hmac = CryptoJS.HmacSHA224(message, key);
63
C.HmacSHA224 = SHA256._createHmacHelper(SHA224);