Comments (5)
Hi @sroy9gmu , src/clu_main.c calls functions that are implemented in the other wolfCLU source code.
For example:
$ gcc src/clu_main.c src/tools/clu_funcs.c src/clu_log.c -lwolfssl
/tmp/cczuMJBz.o: In function `main':
clu_main.c:(.text+0x3ab): undefined reference to `wolfCLU_setup'
clu_main.c:(.text+0x3c9): undefined reference to `wolfCLU_setup'
clu_main.c:(.text+0x3e7): undefined reference to `wolfCLU_setup'
clu_main.c:(.text+0x405): undefined reference to `wolfCLU_setup'
clu_main.c:(.text+0x41e): undefined reference to `wolfCLU_CASetup'
clu_main.c:(.text+0x437): undefined reference to `wolfCLU_benchSetup'
clu_main.c:(.text+0x450): undefined reference to `wolfCLU_hashSetup'
clu_main.c:(.text+0x46e): undefined reference to `wolfCLU_algHashSetup'
clu_main.c:(.text+0x48c): undefined reference to `wolfCLU_algHashSetup'
clu_main.c:(.text+0x4aa): undefined reference to `wolfCLU_algHashSetup'
clu_main.c:(.text+0x4c8): undefined reference to `wolfCLU_algHashSetup'
clu_main.c:(.text+0x4e1): undefined reference to `wolfCLU_certSetup'
clu_main.c:(.text+0x4fa): undefined reference to `wolfCLU_requestSetup'
clu_main.c:(.text+0x513): undefined reference to `wolfCLU_genKeySetup'
clu_main.c:(.text+0x52c): undefined reference to `wolfCLU_ecparam'
clu_main.c:(.text+0x545): undefined reference to `wolfCLU_pKeySetup'
clu_main.c:(.text+0x55e): undefined reference to `wolfCLU_dgst_setup'
clu_main.c:(.text+0x577): undefined reference to `wolfCLU_x509Verify'
clu_main.c:(.text+0x590): undefined reference to `wolfCLU_CRLVerify'
clu_main.c:(.text+0x5a9): undefined reference to `wolfCLU_RSA'
clu_main.c:(.text+0x5c2): undefined reference to `wolfCLU_sign_verify_setup'
clu_main.c:(.text+0x5db): undefined reference to `wolfCLU_PKCS12'
clu_main.c:(.text+0x5f4): undefined reference to `wolfCLU_Client'
clu_main.c:(.text+0x60d): undefined reference to `wolfCLU_Rand'
clu_main.c:(.text+0x623): undefined reference to `wolfCLU_DsaParamSetup'
clu_main.c:(.text+0x639): undefined reference to `wolfCLU_DhParamSetup'
Which to resolve requires adding in the other source files that implement these functions:
$ gcc src/*/*.c src/*.c -lwolfssl
Maybe there is an alternative way to achieve desired goal. Could you tell me some about the requirement with wolfCLU and what is being attempted?
from wolfclu.
I want to invoke the AES encrypt and decrypt functions inside wolfcrypt/src/aes.c from a standalone C source file(myfile.c). Basically, this standalone C source file(will perform aes-256-cbc encryption and decryption on some input data using the APIs in aes.c file. I see that the implementation closely follows OpenSSL library. So, wondering about the best way to invoke only the necessary AES encrypt and decrypt functions inside wolfSSL source repo.
Relevant files:
wolfCLU/src/clu_main.c
wolfCLU/src/crypto/clu_crypto_setup.c
wolfCLU/src/crypto/clu_evp_crypto.c
wolfssl/wolfcrypt/src/evp.c
wolfssl/wolfcrypt/src/aes.c
Expected command:
wolfssl/wolfcrypt/src$ gcc myfile.c -lwolfssl
from wolfclu.
I wanted to follow up on my last message and check if anything was unclear in my query. Please reply at your earliest convenience.
from wolfclu.
Hi @sroy9gmu,
Thank you for expanding on the goal, it is more clearer now. Unfortunately wolfCLU is not extremely modular yet, and can not be compiled down to only handling a specific algorithm. This would be a great feature though and will keep this open as a feature request.
In the meantime, something like the AES example could be used here (https://github.com/wolfSSL/wolfssl-examples/tree/master/crypto/aes).
from wolfclu.
Thank you very much for this information. I was now able to modify one of these AES examples to meet my requirements.
from wolfclu.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wolfclu.