00001 /*------------------------------------------------------------------- 00002 * Example algorithms f1, f1*, f2, f3, f4, f5, f5* 00003 *------------------------------------------------------------------- 00004 * 00005 * A sample implementation of the example 3GPP authentication and 00006 * key agreement functions f1, f1*, f2, f3, f4, f5 and f5*. This is 00007 * a byte-oriented implementation of the functions, and of the block 00008 * cipher kernel function Rijndael. 00009 * 00010 * This has been coded for clarity, not necessarily for efficiency. 00011 * 00012 * The functions f2, f3, f4 and f5 share the same inputs and have 00013 * been coded together as a single function. f1, f1* and f5* are 00014 * all coded separately. 00015 * 00016 *-----------------------------------------------------------------*/ 00017 00018 #ifndef RIJNDAEL_H 00019 #define RIJNDAEL_H 00020 00021 00022 void RijndaelKeySchedule( u8 key[16] ); 00023 void RijndaelEncrypt( u8 input[16], u8 output[16] ); 00024 00025 00026 #endif