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

add AES/DES higher level support #11

Merged
merged 2 commits into from
Sep 17, 2013
Merged

Conversation

fxdupont
Copy link
Contributor

Implement C_EncryptInit/C_Encrypt/C_DecryptInit/C_Decrypt and C_GenerateKey for AES (ECB and CBC modes without padding) and DES (DES/DES3 ECB and CBC modes without padding, DES/DES2/DES3 keys) including tests.

@bellgrim bellgrim merged commit 21675f0 into opendnssec:master Sep 17, 2013
jelu pushed a commit that referenced this pull request Feb 10, 2014
@aalness aalness mentioned this pull request Oct 30, 2014
@rijswijk rijswijk mentioned this pull request Nov 11, 2016
@rijswijk rijswijk mentioned this pull request Feb 26, 2018
Lekensteyn added a commit to Lekensteyn/SoftHSMv2 that referenced this pull request Dec 11, 2018
libsofthsm.so does not link to OpenSSL (unlike the OpenSSL builds). This
results in failure to load the library in a PKCS opendnssec#11 application.
Fix this by adding OpenSSL as dependency for the softhsm_crypto object
library and subsequently propagate this to the softhsm library. Remove
unused static library files while at it.

This requires CMake 3.12, older versions do not allow targets to be
linked with object libraries via target_link_libraries. (If this version
bump is not desired, a workaround needs to be created for
softhsm_objectstore and softhsm_crypto).
Lekensteyn added a commit to Lekensteyn/SoftHSMv2 that referenced this pull request Dec 11, 2018
The autotools build links libsofthsm.so to OpenSSL, but the CMake one
does not do this. This can be observed with `ldd` and GnuTLS 3.6.5 on
Arch Linux:

    $ LD_DEBUG=all p11tool --provider /.../softhsm/libsofthsm2.so
    ...
     25469:     /.../softhsm/libsofthsm2.so: error: symbol lookup error: undefined symbol: DSA_set0_key (fatal)
    ...
    pkcs11_add_provider: PKCS opendnssec#11 initialization error.

Fix this by adding OpenSSL as dependency for the softhsm_crypto object
library and subsequently propagate this to the softhsm library. Remove
unused static library files while at it.

This requires CMake 3.12, older versions do not allow targets to be
linked with object libraries via target_link_libraries. (If this version
bump is not desired, a workaround needs to be created for
softhsm_objectstore and softhsm_crypto).
ansasaki pushed a commit to ansasaki/SoftHSMv2 that referenced this pull request Sep 13, 2019
The autotools build links libsofthsm.so to OpenSSL, but the CMake one
does not do this. This can be observed with `ldd` and GnuTLS 3.6.5 on
Arch Linux:

    $ LD_DEBUG=all p11tool --provider /.../softhsm/libsofthsm2.so
    ...
     25469:     /.../softhsm/libsofthsm2.so: error: symbol lookup error: undefined symbol: DSA_set0_key (fatal)
    ...
    pkcs11_add_provider: PKCS opendnssec#11 initialization error.

Fix this by adding OpenSSL as dependency for the softhsm_crypto object
library and subsequently propagate this to the softhsm library. Remove
unused static library files while at it.

This requires CMake 3.12, older versions do not allow targets to be
linked with object libraries via target_link_libraries. (If this version
bump is not desired, a workaround needs to be created for
softhsm_objectstore and softhsm_crypto).
halderen added a commit that referenced this pull request Mar 4, 2020
 Adjust EDDSA code to return valid EC_PARAMS according to the final PKCS #11 3.0 specification
@rijswijk rijswijk mentioned this pull request Jun 4, 2020
@rijswijk rijswijk mentioned this pull request Sep 7, 2020
@rijswijk rijswijk mentioned this pull request Apr 1, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants