Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link error when ‘#define HAVE_CIPHER_CHACHA20 0’ #146

Closed
topmin opened this issue Mar 23, 2024 · 3 comments
Closed

Link error when ‘#define HAVE_CIPHER_CHACHA20 0’ #146

topmin opened this issue Mar 23, 2024 · 3 comments

Comments

@topmin
Copy link

topmin commented Mar 23, 2024

#define SQLITE3MC_USE_RAND_S 0
#define HAVE_CIPHER_AES_128_CBC 0
#define HAVE_CIPHER_AES_256_CBC 0
#define HAVE_CIPHER_CHACHA20 0
#define HAVE_CIPHER_SQLCIPHER 0
#define HAVE_CIPHER_RC4 0
#define HAVE_CIPHER_ASCON128 1
#define CODEC_TYPE CODEC_TYPE_ASCON128

Unresolved external '_chacha20_rng' referenced from SQLITE3MC.OBJ
Unresolved external '_STORE32_BE' referenced from SQLITE3MC.OBJ

@utelle
Copy link
Owner

utelle commented Mar 23, 2024

#define SQLITE3MC_USE_RAND_S 0
#define HAVE_CIPHER_AES_128_CBC 0
#define HAVE_CIPHER_AES_256_CBC 0
#define HAVE_CIPHER_CHACHA20 0
#define HAVE_CIPHER_SQLCIPHER 0
#define HAVE_CIPHER_RC4 0
#define HAVE_CIPHER_ASCON128 1
#define CODEC_TYPE CODEC_TYPE_ASCON128

Unresolved external '_chacha20_rng' referenced from SQLITE3MC.OBJ Unresolved external '_STORE32_BE' referenced from SQLITE3MC.OBJ

The cipher scheme Ascon128 uses parts of the code of the ChaCha20 implementation, namely the random number generator. Therefore you get unresolved external references, if you disable the cipher ChaCha20.

I will adjust the code, so that the ChaCha20 implementation will be included, even if the cipher ChaCha20 was disabled.

For the time being you can enable the ChaCha20 cipher as a work around.

utelle added a commit that referenced this issue Mar 23, 2024
Disabling all ciphers except Ascon128 led to unresolved external references, because the cipher Ascon128 has a dependency on some code of the cipher ChaCha20.
@utelle
Copy link
Owner

utelle commented Mar 23, 2024

Commit 26c5c5b fixes the issue.

@utelle utelle closed this as completed Mar 23, 2024
@topmin
Copy link
Author

topmin commented Mar 24, 2024

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants