Wolfssl 5.6.6 #385

Open
opened 3 months ago by duke · 1 comments
duke commented 3 months ago
Owner
wallet/crypter.cpp: In member function ‘bool CCrypter::SetKeyFromPassphrase(const SecureString&, const std::vector<unsigned char>&, unsigned int, unsigned int)’:
wallet/crypter.cpp:46:28: error: ‘EVP_aes_256_cbc’ was not declared in this scope
         i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0],
                            ^~~~~~~~~~~~~~~
wallet/crypter.cpp:46:28: note: suggested alternative: ‘wolfSSL_EVP_aes_256_cbc’
         i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0],
                            ^~~~~~~~~~~~~~~
                            wolfSSL_EVP_aes_256_cbc
wallet/crypter.cpp:46:47: error: ‘EVP_sha512’ was not declared in this scope
         i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0],
                                               ^~~~~~~~~~
wallet/crypter.cpp:46:13: error: ‘EVP_BytesToKey’ was not declared in this scope
         i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0],
             ^~~~~~~~~~~~~~
wallet/crypter.cpp:46:13: note: suggested alternative: ‘wolfSSL_EVP_BytesToKey’
         i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0],
             ^~~~~~~~~~~~~~
             wolfSSL_EVP_BytesToKey
wallet/crypter.cpp: In member function ‘bool CCrypter::Encrypt(const CKeyingMaterial&, std::vector<unsigned char>&)’:
wallet/crypter.cpp:85:5: error: ‘EVP_CIPHER_CTX’ was not declared in this scope
     EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
     ^~~~~~~~~~~~~~
wallet/crypter.cpp:85:5: note: suggested alternative: ‘WC_CIPHER_MAX’
     EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
     ^~~~~~~~~~~~~~
     WC_CIPHER_MAX
wallet/crypter.cpp:85:21: error: ‘ctx’ was not declared in this scope
     EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
                     ^~~
wallet/crypter.cpp:85:27: error: ‘EVP_CIPHER_CTX_new’ was not declared in this scope
     EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
                           ^~~~~~~~~~~~~~~~~~
wallet/crypter.cpp:85:27: note: suggested alternative: ‘wolfSSL_EVP_CIPHER_CTX_new’
     EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
                           ^~~~~~~~~~~~~~~~~~
                           wolfSSL_EVP_CIPHER_CTX_new
wallet/crypter.cpp:87:44: error: ‘EVP_aes_256_cbc’ was not declared in this scope
     if (fOk) fOk = EVP_EncryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0;
                                            ^~~~~~~~~~~~~~~
wallet/crypter.cpp:87:44: note: suggested alternative: ‘wolfSSL_EVP_aes_256_cbc’
     if (fOk) fOk = EVP_EncryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0;
                                            ^~~~~~~~~~~~~~~
                                            wolfSSL_EVP_aes_256_cbc
wallet/crypter.cpp:87:20: error: ‘EVP_EncryptInit_ex’ was not declared in this scope
     if (fOk) fOk = EVP_EncryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0;
                    ^~~~~~~~~~~~~~~~~~
wallet/crypter.cpp:88:20: error: ‘EVP_EncryptUpdate’ was not declared in this scope
     if (fOk) fOk = EVP_EncryptUpdate(ctx, &vchCiphertext[0], &nCLen, &vchPlaintext[0], nLen) != 0;
                    ^~~~~~~~~~~~~~~~~
wallet/crypter.cpp:89:20: error: ‘EVP_EncryptFinal_ex’ was not declared in this scope
     if (fOk) fOk = EVP_EncryptFinal_ex(ctx, (&vchCiphertext[0]) + nCLen, &nFLen) != 0;
                    ^~~~~~~~~~~~~~~~~~~
wallet/crypter.cpp:89:20: note: suggested alternative: ‘wolfSSL_EVP_EncryptFinal_ex’
     if (fOk) fOk = EVP_EncryptFinal_ex(ctx, (&vchCiphertext[0]) + nCLen, &nFLen) != 0;
                    ^~~~~~~~~~~~~~~~~~~
                    wolfSSL_EVP_EncryptFinal_ex
wallet/crypter.cpp:90:5: error: ‘EVP_CIPHER_CTX_free’ was not declared in this scope
     EVP_CIPHER_CTX_free(ctx);
     ^~~~~~~~~~~~~~~~~~~
wallet/crypter.cpp:90:5: note: suggested alternative: ‘wolfSSL_EVP_CIPHER_CTX_free’
     EVP_CIPHER_CTX_free(ctx);
     ^~~~~~~~~~~~~~~~~~~
     wolfSSL_EVP_CIPHER_CTX_free
wallet/crypter.cpp: In member function ‘bool CCrypter::Decrypt(const std::vector<unsigned char>&, CKeyingMaterial&)’:
wallet/crypter.cpp:111:5: error: ‘EVP_CIPHER_CTX’ was not declared in this scope
     EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
     ^~~~~~~~~~~~~~
wallet/crypter.cpp:111:5: note: suggested alternative: ‘WC_CIPHER_MAX’
     EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
     ^~~~~~~~~~~~~~
     WC_CIPHER_MAX
wallet/crypter.cpp:111:21: error: ‘ctx’ was not declared in this scope
     EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
                     ^~~
wallet/crypter.cpp:111:27: error: ‘EVP_CIPHER_CTX_new’ was not declared in this scope
     EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
                           ^~~~~~~~~~~~~~~~~~
wallet/crypter.cpp:111:27: note: suggested alternative: ‘wolfSSL_EVP_CIPHER_CTX_new’
     EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
                           ^~~~~~~~~~~~~~~~~~
                           wolfSSL_EVP_CIPHER_CTX_new
wallet/crypter.cpp:113:44: error: ‘EVP_aes_256_cbc’ was not declared in this scope
     if (fOk) fOk = EVP_DecryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0;
                                            ^~~~~~~~~~~~~~~
wallet/crypter.cpp:113:44: note: suggested alternative: ‘wolfSSL_EVP_aes_256_cbc’
     if (fOk) fOk = EVP_DecryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0;
                                            ^~~~~~~~~~~~~~~
                                            wolfSSL_EVP_aes_256_cbc
wallet/crypter.cpp:113:20: error: ‘EVP_DecryptInit_ex’ was not declared in this scope
     if (fOk) fOk = EVP_DecryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0;
                    ^~~~~~~~~~~~~~~~~~
wallet/crypter.cpp:114:20: error: ‘EVP_DecryptUpdate’ was not declared in this scope
     if (fOk) fOk = EVP_DecryptUpdate(ctx, &vchPlaintext[0], &nPLen, &vchCiphertext[0], nLen) != 0;
                    ^~~~~~~~~~~~~~~~~
wallet/crypter.cpp:115:20: error: ‘EVP_DecryptFinal_ex’ was not declared in this scope
     if (fOk) fOk = EVP_DecryptFinal_ex(ctx, (&vchPlaintext[0]) + nPLen, &nFLen) != 0;
                    ^~~~~~~~~~~~~~~~~~~
wallet/crypter.cpp:115:20: note: suggested alternative: ‘wolfSSL_EVP_DecryptFinal_ex’
     if (fOk) fOk = EVP_DecryptFinal_ex(ctx, (&vchPlaintext[0]) + nPLen, &nFLen) != 0;
                    ^~~~~~~~~~~~~~~~~~~
                    wolfSSL_EVP_DecryptFinal_ex
wallet/crypter.cpp:116:5: error: ‘EVP_CIPHER_CTX_free’ was not declared in this scope
     EVP_CIPHER_CTX_free(ctx);
     ^~~~~~~~~~~~~~~~~~~
wallet/crypter.cpp:116:5: note: suggested alternative: ‘wolfSSL_EVP_CIPHER_CTX_free’
     EVP_CIPHER_CTX_free(ctx);
     ^~~~~~~~~~~~~~~~~~~
     wolfSSL_EVP_CIPHER_CTX_free
Makefile:4066: recipe for target 'wallet/libbitcoin_wallet_a-crypter.o' failed
``` wallet/crypter.cpp: In member function ‘bool CCrypter::SetKeyFromPassphrase(const SecureString&, const std::vector<unsigned char>&, unsigned int, unsigned int)’: wallet/crypter.cpp:46:28: error: ‘EVP_aes_256_cbc’ was not declared in this scope i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0], ^~~~~~~~~~~~~~~ wallet/crypter.cpp:46:28: note: suggested alternative: ‘wolfSSL_EVP_aes_256_cbc’ i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0], ^~~~~~~~~~~~~~~ wolfSSL_EVP_aes_256_cbc wallet/crypter.cpp:46:47: error: ‘EVP_sha512’ was not declared in this scope i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0], ^~~~~~~~~~ wallet/crypter.cpp:46:13: error: ‘EVP_BytesToKey’ was not declared in this scope i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0], ^~~~~~~~~~~~~~ wallet/crypter.cpp:46:13: note: suggested alternative: ‘wolfSSL_EVP_BytesToKey’ i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha512(), &chSalt[0], ^~~~~~~~~~~~~~ wolfSSL_EVP_BytesToKey wallet/crypter.cpp: In member function ‘bool CCrypter::Encrypt(const CKeyingMaterial&, std::vector<unsigned char>&)’: wallet/crypter.cpp:85:5: error: ‘EVP_CIPHER_CTX’ was not declared in this scope EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); ^~~~~~~~~~~~~~ wallet/crypter.cpp:85:5: note: suggested alternative: ‘WC_CIPHER_MAX’ EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); ^~~~~~~~~~~~~~ WC_CIPHER_MAX wallet/crypter.cpp:85:21: error: ‘ctx’ was not declared in this scope EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); ^~~ wallet/crypter.cpp:85:27: error: ‘EVP_CIPHER_CTX_new’ was not declared in this scope EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); ^~~~~~~~~~~~~~~~~~ wallet/crypter.cpp:85:27: note: suggested alternative: ‘wolfSSL_EVP_CIPHER_CTX_new’ EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); ^~~~~~~~~~~~~~~~~~ wolfSSL_EVP_CIPHER_CTX_new wallet/crypter.cpp:87:44: error: ‘EVP_aes_256_cbc’ was not declared in this scope if (fOk) fOk = EVP_EncryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0; ^~~~~~~~~~~~~~~ wallet/crypter.cpp:87:44: note: suggested alternative: ‘wolfSSL_EVP_aes_256_cbc’ if (fOk) fOk = EVP_EncryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0; ^~~~~~~~~~~~~~~ wolfSSL_EVP_aes_256_cbc wallet/crypter.cpp:87:20: error: ‘EVP_EncryptInit_ex’ was not declared in this scope if (fOk) fOk = EVP_EncryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0; ^~~~~~~~~~~~~~~~~~ wallet/crypter.cpp:88:20: error: ‘EVP_EncryptUpdate’ was not declared in this scope if (fOk) fOk = EVP_EncryptUpdate(ctx, &vchCiphertext[0], &nCLen, &vchPlaintext[0], nLen) != 0; ^~~~~~~~~~~~~~~~~ wallet/crypter.cpp:89:20: error: ‘EVP_EncryptFinal_ex’ was not declared in this scope if (fOk) fOk = EVP_EncryptFinal_ex(ctx, (&vchCiphertext[0]) + nCLen, &nFLen) != 0; ^~~~~~~~~~~~~~~~~~~ wallet/crypter.cpp:89:20: note: suggested alternative: ‘wolfSSL_EVP_EncryptFinal_ex’ if (fOk) fOk = EVP_EncryptFinal_ex(ctx, (&vchCiphertext[0]) + nCLen, &nFLen) != 0; ^~~~~~~~~~~~~~~~~~~ wolfSSL_EVP_EncryptFinal_ex wallet/crypter.cpp:90:5: error: ‘EVP_CIPHER_CTX_free’ was not declared in this scope EVP_CIPHER_CTX_free(ctx); ^~~~~~~~~~~~~~~~~~~ wallet/crypter.cpp:90:5: note: suggested alternative: ‘wolfSSL_EVP_CIPHER_CTX_free’ EVP_CIPHER_CTX_free(ctx); ^~~~~~~~~~~~~~~~~~~ wolfSSL_EVP_CIPHER_CTX_free wallet/crypter.cpp: In member function ‘bool CCrypter::Decrypt(const std::vector<unsigned char>&, CKeyingMaterial&)’: wallet/crypter.cpp:111:5: error: ‘EVP_CIPHER_CTX’ was not declared in this scope EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); ^~~~~~~~~~~~~~ wallet/crypter.cpp:111:5: note: suggested alternative: ‘WC_CIPHER_MAX’ EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); ^~~~~~~~~~~~~~ WC_CIPHER_MAX wallet/crypter.cpp:111:21: error: ‘ctx’ was not declared in this scope EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); ^~~ wallet/crypter.cpp:111:27: error: ‘EVP_CIPHER_CTX_new’ was not declared in this scope EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); ^~~~~~~~~~~~~~~~~~ wallet/crypter.cpp:111:27: note: suggested alternative: ‘wolfSSL_EVP_CIPHER_CTX_new’ EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); ^~~~~~~~~~~~~~~~~~ wolfSSL_EVP_CIPHER_CTX_new wallet/crypter.cpp:113:44: error: ‘EVP_aes_256_cbc’ was not declared in this scope if (fOk) fOk = EVP_DecryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0; ^~~~~~~~~~~~~~~ wallet/crypter.cpp:113:44: note: suggested alternative: ‘wolfSSL_EVP_aes_256_cbc’ if (fOk) fOk = EVP_DecryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0; ^~~~~~~~~~~~~~~ wolfSSL_EVP_aes_256_cbc wallet/crypter.cpp:113:20: error: ‘EVP_DecryptInit_ex’ was not declared in this scope if (fOk) fOk = EVP_DecryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKey, chIV) != 0; ^~~~~~~~~~~~~~~~~~ wallet/crypter.cpp:114:20: error: ‘EVP_DecryptUpdate’ was not declared in this scope if (fOk) fOk = EVP_DecryptUpdate(ctx, &vchPlaintext[0], &nPLen, &vchCiphertext[0], nLen) != 0; ^~~~~~~~~~~~~~~~~ wallet/crypter.cpp:115:20: error: ‘EVP_DecryptFinal_ex’ was not declared in this scope if (fOk) fOk = EVP_DecryptFinal_ex(ctx, (&vchPlaintext[0]) + nPLen, &nFLen) != 0; ^~~~~~~~~~~~~~~~~~~ wallet/crypter.cpp:115:20: note: suggested alternative: ‘wolfSSL_EVP_DecryptFinal_ex’ if (fOk) fOk = EVP_DecryptFinal_ex(ctx, (&vchPlaintext[0]) + nPLen, &nFLen) != 0; ^~~~~~~~~~~~~~~~~~~ wolfSSL_EVP_DecryptFinal_ex wallet/crypter.cpp:116:5: error: ‘EVP_CIPHER_CTX_free’ was not declared in this scope EVP_CIPHER_CTX_free(ctx); ^~~~~~~~~~~~~~~~~~~ wallet/crypter.cpp:116:5: note: suggested alternative: ‘wolfSSL_EVP_CIPHER_CTX_free’ EVP_CIPHER_CTX_free(ctx); ^~~~~~~~~~~~~~~~~~~ wolfSSL_EVP_CIPHER_CTX_free Makefile:4066: recipe for target 'wallet/libbitcoin_wallet_a-crypter.o' failed ```
Poster
Owner

This is related to #380 . Wolfssl 5.3.0 changed a lot of function names, so if we want to upgrade to 5.3.0 or higher we need to change a bunch of our code

This is related to #380 . Wolfssl 5.3.0 changed a lot of function names, so if we want to upgrade to 5.3.0 or higher we need to change a bunch of our code
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.