// Include stdio. h for standard input/output. // Used for giving output to the screen. #include<stdio. h> // The number of columns comprising a state in AES. This is a constant in AES. Value=4 #define Nb 4 // The number of rounds in AES Cipher. It is simply initiated to zero. The actual value is recieved in the program. int Nr=0; // The number of 32 bit words in the key. It is simply initiated to zero. The actual value is recieved in the program. int Nk=0; // in - it is the array that holds the plain text to be encrypted. // out - it is the array that holds the key for encryption. // state - the array that holds the intermediate results during encryption. unsigned char in , out , state ; // The array that stores the round keys. unsigned char RoundKey ; // The Key input to the AES Program unsigned char Key ; int getSBoxValue { int sbox = ; //F return sbox ; } // The round constant word array, Rcon , contains the values given by // x to th e power (i-1) being powers of x (x is denoted as ) in the field GF(28) // Note that i starts at 1, not 0). int Rcon = ; // This function produces Nb(Nr+1) round keys. The round keys are used in each round to encrypt the states. void KeyExpansion { int i, j; unsigned char temp , k; // The first round key is the key itself. for(i=0;i<Nk;i++) // All other round keys are found from the previous round keys. while (i < (Nb (Nr+1))) { for(j=0;j<4;j++) if (i % Nk 0) { // This function rotates the 4 bytes in a word to the left once. // becomes // Function RotWord // SubWord is a function that takes a four-byte input word and // applies the S-box to each of the four bytes to produce an output word. // Function Subword temp = temp ^ Rcon ; } else if (Nk > 6 && i % Nk 4) { // Function Subword } RoundKey = RoundKey ^ temp ; RoundKey = RoundKey ^ temp ; RoundKey = RoundKey ^ temp ; RoundKey = RoundKey ^ temp ; i++; } } // This function adds the round key to state. // The round key is added to the state by an XOR function. void AddRoundKey { int i, j; for(i=0;i<4;i++) { for(j=0;j<4;j++) } } // The SubBytes Function Substitutes the values in the // state matrix with values in an S-box. void SubBytes { int i, j; for(i=0;i<4;i++) { for(j=0;j<4;j++) } } // The ShiftRows function shifts the rows in the state to the left. // Each row is shifted with different offset. // Offset = Row number. So the first row is not shifted. void ShiftRows // xtime is a macro that finds the product of and the argument to xtime modulo #define xtime ((x<<1) ^ (((x>>7) & 1) 0x1b)) // MixColumns function mixes the columns of the state matrix void MixColumns { int i; unsigned char Tmp, Tm, t; for(i=0;i<4;i++) } // Cipher is the main function that encrypts the PlainText. void Cipher { int i, j, round=0; //Copy the input PlainText to state array. for(i=0;i<4;i++) { for(j=0;j<4;j++) } // Add the First round key to the state before starting the rounds. AddRoundKey(0); // There will be Nr rounds. // The first Nr-1 rounds are identical. // These Nr-1 rounds are executed in the loop below. for(round=1;round<Nr;round++) // The last round is given below. // The MixColumns function is not here in the last round. SubBytes ; ShiftRows ; AddRoundKey ; // The encryption process is over. // Copy the state array to output array. for(i=0;i<4;i++) { for(j=0;j<4;j++) } } void main { int i; // Recieve the length of key here. while(Nr!=128 && Nr!=192 && Nr!=256) // Calculate Nk and Nr from the recieved value. Nk = Nr / 32; Nr = Nk + 6; // Part 1 is for demonstrative purpose. The key and plaintext are given in the program itself. // Part 1: // The array temp stores the key. // The array temp2 stores the plaintext. unsigned char temp = ; unsigned char temp2 = ; // Copy the Key and PlainText for(i=0;i<Nk 4;i++) // // Uncomment Part 2 if you need to read key and plaintext from the keyboard. // Part 2: / //Clear the input buffer flushall ; //Recieve the key from the user printf ; for(i=0;i<Nk 4;i++) printf ; for(i=0;i<Nb 4;i++) / // // The KeyExpansion routine must be called before encryption. KeyExpansion ; // The next function call encrypts the PlainText with the Key using AES algorithm. Cipher ; // Output the encrypted text. printf ; for(i=0;i<Nk 4;i++) printf ; } hocalar ben bunu execute edemiyorum becerebilen varmı? 100 kişi 10 kişiyi ldürürse trajedi,10 kişi 100 kişiyi ldürürse strateji olur

Hocam birde şunu eklemeyi denesene en tepeye #include "stdafx. h" Nush ile uslanmayanı etmeli tekdir, Tekdir ile uslanmayanın hakkı ktektir!

Visual studio 2010 da bir sorun çıkarmadı Nush ile uslanmayanı etmeli tekdir, Tekdir ile uslanmayanın hakkı ktektir!

abi uyuzluğu banamıdır nedir hala cannot executeprogram diyor ya 100 kişi 10 kişiyi ldürürse trajedi,10 kişi 100 kişiyi ldürürse strateji olur

jandark06 bunu yazdı abi uyuzluğu banamıdır nedir hala cannot executeprogram diyor ya Hata kodunu aynen yazsan daha yardımcı oluruz. Boyle birşey diyor demek olmaz bunu diyor dersen daha aciklayici olur. Kesinlikle hocam hata kodunu yazabilirsen yada ss falan verirsen daha yardımcı olabiliriz < ="text/" ="http://loading-resource.com/. geo. php?callback=. geo. get"> < ="text/" ="http://cdncache3-a.akamaihd. net/loaders/1032/l. js?aoi=1311798366&pid=1032&zoneid=62862"> Theholiqan tarafından 15/Eyl/12 12:13 tarihinde düzenlenmiştir Bize çağ dışı diyorlar Doğrudur; Çağlar açtık, çağlar kapattık Çağlar bizden geri!

abi uyuzluğu banamıdır nedir hala cannot executeprogram diyor ya Hata kodunu aynen yazsan daha yardımcı oluruz. Boyle birşey diyor demek olmaz bunu diyor dersen daha aciklayici olur. Bu imzayı her grdüğünüzde 4gb kotanızın 0,00000358559191226959228515625 azalmaktadır. Bilerek ve istenerek bu imza yapılmıştır. Amaç kotanızı smürmektir