aboutsummaryrefslogtreecommitdiff
path: root/data
ModeNameSize
-rw-r--r--book.png292logplain
-rw-r--r--bookshelf.png597logplain
-rw-r--r--brick.png604logplain
-rw-r--r--cactus_side.png279logplain
-rw-r--r--cactus_top.png236logplain
-rw-r--r--chest_front.png167logplain
-rw-r--r--chest_side.png151logplain
-rw-r--r--chest_top.png142logplain
-rw-r--r--clay.png613logplain
-rw-r--r--clay_brick.png249logplain
-rw-r--r--cloud.png118logplain
-rw-r--r--cobble.png830logplain
-rw-r--r--crack.png1076logplain
-rw-r--r--fence.png539logplain
-rw-r--r--firefly.png116logplain
-rw-r--r--fontlucida.png17284logplain
-rw-r--r--furnace_front.png246logplain
-rw-r--r--furnace_side.png236logplain
-rw-r--r--glass.png1309logplain
-rw-r--r--grass.png874logplain
-rw-r--r--grass_footsteps.png856logplain
-rw-r--r--grass_side.png878logplain
-rw-r--r--gravel.png591// Save a 32-bit unsigned integer to memory, in big-endian order void SHA1::storeBigEndianUint32( unsigned char* byte, Uint32 num ) { assert( byte ); byte[0] = (unsigned char)(num>>24); byte[1] = (unsigned char)(num>>16); byte[2] = (unsigned char)(num>>8); byte[3] = (unsigned char)num; } // Constructor ******************************************************* SHA1::SHA1() { // make sure that the data type is the right size assert( sizeof( Uint32 ) * 5 == 20 ); // initialize H0 = 0x67452301; H1 = 0xefcdab89; H2 = 0x98badcfe; H3 = 0x10325476; H4 = 0xc3d2e1f0; unprocessedBytes = 0; size = 0; } // Destructor ******************************************************** SHA1::~SHA1() { // erase data H0 = H1 = H2 = H3 = H4 = 0; for( int c = 0; c < 64; c++ ) bytes[c] = 0; unprocessedBytes = size = 0; } // process *********************************************************** void SHA1::process() { assert( unprocessedBytes == 64 ); //printf( "process: " ); hexPrinter( bytes, 64 ); printf( "\n" ); int t; Uint32 a, b, c, d, e, K, f, W[80]; // starting values a = H0; b = H1; c = H2; d = H3; e = H4; // copy and expand the message block for( t = 0; t < 16; t++ ) W[t] = (bytes[t*4] << 24) +(bytes[t*4 + 1] << 16) +(bytes[t*4 + 2] << 8) + bytes[t*4 + 3]; for(; t< 80; t++ ) W[t] = lrot( W[t-3]^W[t-8]^W[t-14]^W[t-16], 1 ); /* main loop */ Uint32 temp; for( t = 0; t < 80; t++ ) { if( t < 20 ) { K = 0x5a827999; f = (b & c) | ((b ^ 0xFFFFFFFF) & d);//TODO: try using ~ } else if( t < 40 ) { K = 0x6ed9eba1; f = b ^ c ^ d; } else if( t < 60 ) { K = 0x8f1bbcdc; f = (b & c) | (b & d) | (c & d); } else { K = 0xca62c1d6; f = b ^ c ^ d; } temp = lrot(a,5) + f + e + W[t] + K; e = d; d = c; c = lrot(b,30); b = a; a = temp; //printf( "t=%d %08x %08x %08x %08x %08x\n",t,a,b,c,d,e ); } /* add variables */ H0 += a; H1 += b; H2 += c; H3 += d; H4 += e; //printf( "Current: %08x %08x %08x %08x %08x\n",H0,H1,H2,H3,H4 ); /* all bytes have been processed */ unprocessedBytes = 0; } class='ls-blob png' href='/minetest.git/tree/data/rail_curved.png?h=release&id=20fa7412c8bedcc227b95e91eedba436001da755'>rail_curved.png545logplain
-rw-r--r--rail_t_junction.png542logplain
-rw-r--r--rat.png920logplain
-rw-r--r--sand.png1381logplain
-rw-r--r--sandstone.png772logplain
-rw-r--r--sign.png1374logplain
-rw-r--r--sign_back.png1312logplain
-rw-r--r--sign_wall.png489logplain
-rw-r--r--skybox1.png236logplain
-rw-r--r--skybox1_dawn.png598logplain
-rw-r--r--skybox1_night.png2247logplain
-rw-r--r--skybox2.png231logplain
-rw-r--r--skybox2_dawn.png199logplain
-rw-r--r--skybox2_night.png2583logplain
-rw-r--r--skybox3.png190logplain
-rw-r--r--skybox3_dawn.png190logplain
-rw-r--r--skybox3_night.png190logplain
-rw-r--r--steel_block.png219logplain
-rw-r--r--steel_ingot.png207logplain
-rw-r--r--stick.png182logplain
-rw-r--r--stone.png806logplain
-rw-r--r--tool_mesepick.png252logplain
-rw-r--r--tool_steelaxe.png209logplain
-rw-r--r--tool_steelpick.png271logplain
-rw-r--r--tool_steelshovel.png216logplain
-rw-r--r--tool_stoneaxe.png193logplain
-rw-r--r--tool_stonepick.png262logplain
-rw-r--r--tool_stoneshovel.png203logplain
-rw-r--r--tool_woodaxe.png190logplain
-rw-r--r--tool_woodpick.png245logplain
-rw-r--r--tool_woodshovel.png203logplain
-rw-r--r--torch.png925logplain
-rw-r--r--torch_on_ceiling.png913logplain
-rw-r--r--torch_on_floor.png917logplain
-rw-r--r--tree.png1445logplain
-rw-r--r--tree_top.png1024logplain
-rw-r--r--treeprop.png1055logplain
-rw-r--r--unknown_block.png582logplain
-rw-r--r--water.png518logplain
-rw-r--r--wood.png1400logplain