I am trying to recompile binutils and GCC as a cross-compiler for m68k architecture. I am following these instructions:
http://darkdust.net/writings/megadrive/crosscompiler
However, the process keeps failing on one part or another. I have tried with binutils 2.16.1 and gcc 3.4.6, binutils 2.15 and gcc 3.4.2 and binutils 2.15 and gcc 3.4.6.
This last attempt fails when running "make" on gcc, after making and installing binutils. It gives the following error:
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-
prototypes -Wmissing-prototypes …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用EVP接口使用AES,CBC和PKCS#7填充来加密/解密.我正在使用Wiki上的示例.
我正在EVP_CIPHER_CTX_set_padding(ctx, 0)创建和初始化不应添加填充的上下文,如果明文不是16字节的倍数则失败.尽管如此,密文总是包含一个仅由填充组成的额外块.
我正在使用的代码从教程中逐字复制和粘贴,我只添加EVP_CIPHER_CTX_set_padding(ctx, 0)加密和解密,如下所示:
/* Create and initialise the context */
if (!(ctx = EVP_CIPHER_CTX_new())) handleErrors();
EVP_CIPHER_CTX_set_padding(ctx, 0);
Run Code Online (Sandbox Code Playgroud)
难道我做错了什么?