Skip to content

add AES/DES higher level support#11

Merged
bellgrim merged 2 commits intosofthsm:masterfrom
fxdupont:aes
Sep 17, 2013
Merged

add AES/DES higher level support#11
bellgrim merged 2 commits intosofthsm:masterfrom
fxdupont:aes

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 softhsm: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 softhsm#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 softhsm#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.

2 participants