Category : aes

I’m implementing encrypt/decrypt code with c++/c# I referred to this post and referred to answers.z` But c++/c# encrypted code was not matched. Here are my codes. C++ // base64 encode part static const std::string base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789+/"; static inline bool is_base64(BYTE c) { return (isalnum(c) || (c == ‘+’) || (c == ‘/’)); ..

Read more

I’m trying to build this project: https://github.com/utelle/SQLite3MultipleCiphers Specifically the amalgamation files found at: https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.2.5 I’m getting this error from the _mm_aesimc_si128 function: /usr/lib/gcc/x86_64-linux-gnu/9/include/wmmintrin. h:77: error: inlining failed in call to always_inline ‘_mm_aesimc_si128’: target specific option mismatch In file included from ../sqlite3mc/sqlite3mc_amalgamation.c:250494: ../sqlite3mc/sqlite3mc_amalgamation.c: In function ‘aesGenKeyDecrypt’: /usr/lib/gcc/x86_64-linux-gnu/9/include/wmmintrin.h:77:1: error: inlining failed in call to always_inline ‘_mm_aesimc_si128’: target ..

Read more

#include <iostream> #include <string.h> using namespace std; void InverseMixColumns(unsigned char* state) { unsigned char tmp[16]; tmp[0] = (unsigned char)mul14[state[0]] ^ mul11[state[1]] ^ mul13[state[2]] ^ mul9[state[3]]; tmp[1] = (unsigned char)mul9[state[0]] ^ mul14[state[1]] ^ mul11[state[2]] ^ mul13[state[3]]; tmp[2] = (unsigned char)mul13[state[0]] ^ mul9[state[1]] ^ mul14[state[2]] ^ mul11[state[3]]; tmp[3] = (unsigned char)mul11[state[0]] ^ mul13[state[1]] ^ mul9[state[2]] ^ mul14[state[3]]; ..

Read more