C or C++ : Insufficient encryption key length