Repository navigation
Add support for a wolfSSL crypto backend. - #629
Conversation
|
|
||
| #ifdef HAVE_OPAQUE_STRUCTS | ||
| ret = EVP_Cipher(*ctx, buf, block, blocksize); | ||
| ret = EVP_CipherUpdate(*ctx, buf, &outlen, block, blocksize); |
There was a problem hiding this comment.
I think simply switching to using EVP_CipherUpdate here clears up the return code complexity.
It uses wolfSSL's OpenSSL compatibility layer, so rather than introduce new wolfssl.h/c files, the new backend just reuses openssl.h/c. Additionally, replace EVP_Cipher() calls with EVP_CipherUpdate(), since EVP_Cipher() is not recommended.
|
This is great! I would like to see this backend added to the ci if possible, is that something you might be able to tackle? |
Sure, I can look into that. Got any examples/docs that I can use to get set up with your CI system? |
|
The file that needs updating is |
|
I'm going to land this to make sure it gets into the next release. I'd still like to see it in CI when you have some time @haydenroche5. Thanks again! |
It uses wolfSSL's OpenSSL compatibility layer, so rather than introduce new wolfssl.h/c files, the new backend just reuses openssl.h/c. Additionally, replace EVP_Cipher() calls with EVP_CipherUpdate(), since EVP_Cipher() is not recommended. Credit: Hayden Roche
This reverts commit 17c9c1f. # Conflicts: # src/openssl.h
It uses wolfSSL's OpenSSL compatibility layer, so rather than introduce new
wolfssl.h/c files, the new backend just reuses openssl.h/c. Additionally,
replace EVP_Cipher() calls with EVP_CipherUpdate(), since EVP_Cipher() is not
recommended.