PageRenderTime 363ms CodeModel.GetById 161ms app.highlight 1ms RepoModel.GetById 200ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/hash/SHA224.as

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
ActionScript | 28 lines | 18 code | 1 blank | 9 comment | 0 complexity | 026d3e96099de7100c1d49012720d6f9 MD5 | raw file
 1/**
 2 * SHA224
 3 * 
 4 * An ActionScript 3 implementation of Secure Hash Algorithm, SHA-224, as defined
 5 * in FIPS PUB 180-2
 6 * Copyright (c) 2007 Henri Torgemane
 7 * 
 8 * See LICENSE.txt for full license information.
 9 */
10package com.hurlant.crypto.hash
11{
12	public class SHA224 extends SHA256
13	{
14		function SHA224() {
15			h = [
16				0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
17				0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4
18			];
19		}
20		
21		public override function getHashSize():uint {
22			return 28;
23		}
24		public override function toString():String {
25			return "sha224";
26		}
27	}
28}