public static string encode(string s) { #line 30 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" global::haxe.crypto.Sha1 sh = new global::haxe.crypto.Sha1(); global::haxe.root.Array h = sh.doEncode(global::haxe.crypto.Sha1.str2blks(s)); #line 32 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" return(sh.hex(h)); }
public static global::haxe.io.Bytes make(global::haxe.io.Bytes b) { unchecked { #line 36 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" global::haxe.root.Array h = new global::haxe.crypto.Sha1().doEncode(global::haxe.crypto.Sha1.bytes2blks(b)); global::haxe.io.Bytes @out = global::haxe.io.Bytes.alloc(20); #line 38 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" int p = 0; { #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" { #line 40 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" @out.b[p++] = ((byte)(((int)((((uint)(((int)(global::haxe.lang.Runtime.toInt(h.__get(0)))))) >> 24))))); @out.b[p++] = ((byte)(((((int)(global::haxe.lang.Runtime.toInt(h.__get(0)))) >> 16) & 255))); #line 42 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" @out.b[p++] = ((byte)(((((int)(global::haxe.lang.Runtime.toInt(h.__get(0)))) >> 8) & 255))); @out.b[p++] = ((byte)((((int)(global::haxe.lang.Runtime.toInt(h.__get(0)))) & 255))); } #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" { #line 40 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" @out.b[p++] = ((byte)(((int)((((uint)(((int)(global::haxe.lang.Runtime.toInt(h.__get(1)))))) >> 24))))); @out.b[p++] = ((byte)(((((int)(global::haxe.lang.Runtime.toInt(h.__get(1)))) >> 16) & 255))); #line 42 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" @out.b[p++] = ((byte)(((((int)(global::haxe.lang.Runtime.toInt(h.__get(1)))) >> 8) & 255))); @out.b[p++] = ((byte)((((int)(global::haxe.lang.Runtime.toInt(h.__get(1)))) & 255))); } #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" { #line 40 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" @out.b[p++] = ((byte)(((int)((((uint)(((int)(global::haxe.lang.Runtime.toInt(h.__get(2)))))) >> 24))))); @out.b[p++] = ((byte)(((((int)(global::haxe.lang.Runtime.toInt(h.__get(2)))) >> 16) & 255))); #line 42 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" @out.b[p++] = ((byte)(((((int)(global::haxe.lang.Runtime.toInt(h.__get(2)))) >> 8) & 255))); @out.b[p++] = ((byte)((((int)(global::haxe.lang.Runtime.toInt(h.__get(2)))) & 255))); } #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" { #line 40 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" @out.b[p++] = ((byte)(((int)((((uint)(((int)(global::haxe.lang.Runtime.toInt(h.__get(3)))))) >> 24))))); @out.b[p++] = ((byte)(((((int)(global::haxe.lang.Runtime.toInt(h.__get(3)))) >> 16) & 255))); #line 42 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" @out.b[p++] = ((byte)(((((int)(global::haxe.lang.Runtime.toInt(h.__get(3)))) >> 8) & 255))); @out.b[p++] = ((byte)((((int)(global::haxe.lang.Runtime.toInt(h.__get(3)))) & 255))); } #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" { #line 40 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" @out.b[p++] = ((byte)(((int)((((uint)(((int)(global::haxe.lang.Runtime.toInt(h.__get(4)))))) >> 24))))); @out.b[p++] = ((byte)(((((int)(global::haxe.lang.Runtime.toInt(h.__get(4)))) >> 16) & 255))); #line 42 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" @out.b[p++] = ((byte)(((((int)(global::haxe.lang.Runtime.toInt(h.__get(4)))) >> 8) & 255))); @out.b[p++] = ((byte)((((int)(global::haxe.lang.Runtime.toInt(h.__get(4)))) & 255))); } } #line 45 "C:\\HaxeToolkit\\haxe\\std\\haxe\\crypto\\Sha1.hx" return(@out); } #line default }
protected static void __hx_ctor_haxe_crypto_Sha1(global::haxe.crypto.Sha1 __hx_this) { }