Home > Back-end >  Interrupt handling C
Interrupt handling C

Time:09-21



Request a great god help, at the time of decryption interrupt
Int lenct=(int) strlen ((const char *) CB - & gt; CT. Ctext);
EVP_CIPHER_CTX ctx1;
Unsigned char gkAfterDecrypt [512].
Int txtLenAfterDecrypt;
OpenSSL_add_all_ciphers ();
Int TMP.
//int outl=CB - & gt; CT. Ctextlen;
//EVP_CIPHER_CTX ctx1;
Const EVP_CIPHER * type1;
Type1=EVP_aes_128_ecb ();
EVP_DecryptInit (& amp; Ctx1 type1, pl2, iv1);

EVP_DecryptUpdate (& amp; Ctx1,//decryption context object
GkAfterDecrypt,//the contents of the decrypted
& TxtLenAfterDecrypt,//the contents of the decrypted length
CB - & gt; CT. Ctext,//to decrypt the contents of the
64//to decrypt the length of the content of the
);
TMP=txtLenAfterDecrypt;
//end decryption
EVP_DecryptFinal (& amp; Ctx1 gkAfterDecrypt + txtLenAfterDecrypt, & amp; TxtLenAfterDecrypt);
TxtLenAfterDecrypt +=TMP;
EVP_CIPHER_CTX_cleanup (& amp; Ctx1);
GkAfterDecrypt [txtLenAfterDecrypt]=0;
  • Related