Definition at line 122 of file cryptoFunctions.cpp. 00122 { 00123 #ifdef HAVE_OPENSSL_CAMELLIA_H 00124 initCharArray(output, length); 00125 nullIvec(IVEC); 00126 CAMELLIA_KEY key; 00127 Camellia_set_key(iteration, LENGTH_ITERATION_WORD*8, &key); /*this one takes the bit length!!!*/ 00128 Camellia_cbc_encrypt(input, *output, length, &key, IVEC, CAMELLIA_ENCRYPT); 00129 return length; 00130 #else 00131 return -1; 00132 #endif 00133 00134 00135 }
|
1.5.1