<div dir="ltr"><div>Hi,</div><div><br></div><div>    I'm trying to use the EVP AES wrap implementations from openssl (e.g. EVP_aes_128/192/256_wrap()) but I'm getting the following error in EVP_EncryptInit_ex() f: <br></div><div>    error:0607B0AA:digital envelope routines:EVP_CipherInit_ex:wrap mode not allowed</div><div>    I've search the documentation for examples or guidance but I couldn't find anything related to this.</div><div>    Any experienced the same issue ?<br></div><div><br></div><div>    My pseudo code is:</div><div><br></div><div>        EVP_CIPHER_CTX ctx;<br></div><div>        EVP_CIPHER_CTX_init(&ctx);<br>        if (EVP_EncryptInit_ex(&ctx, EVP_aes_128_wrap(), 0, keyEncriptionKey, iv) != 1)</div><div>             // process error<br></div><div>        if ( EVP_EncryptUpdate(&ctx, bufferOut, &processedSize, plaintext, plaintextSize) != 1)</div><div>             // process error<br>        if (EVP_EncryptFinal_ex(&ctx, bufferOut + processedSize, &tmpSize) != 1)<br>             // process error<br>        EVP_CIPHER_CTX_cleanup(&ctx);<br></div><div><br></div><div><div dir="ltr" class="gmail_signature">Regards,<br>Luís<br></div></div></div>