diff options
| author | Jason King <jason@ansipunx.net> | 2010-10-09 16:16:14 -0500 |
|---|---|---|
| committer | Jason King <jason@ansipunx.net> | 2010-10-09 16:16:14 -0500 |
| commit | 53a3dbbbad58b810bf04c5f94c0ac119a1d8d348 (patch) | |
| tree | 42972fae61250225886b157c1c36c52623d1a2b2 /usr/src/lib/pkcs11/pkcs11_softtoken/common | |
| parent | bdbfb1bdb002684cc55dabb341ab4445575a26df (diff) | |
| download | illumos-joyent-53a3dbbbad58b810bf04c5f94c0ac119a1d8d348.tar.gz | |
289 invalid padding when using java pkcs11 provider
Reviewed by: garrett@nexenta.com, gordon.w.ross@gmail.com
Approved by: richlowe@richlowe.net
Diffstat (limited to 'usr/src/lib/pkcs11/pkcs11_softtoken/common')
| -rw-r--r-- | usr/src/lib/pkcs11/pkcs11_softtoken/common/softDH.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/pkcs11/pkcs11_softtoken/common/softDH.c b/usr/src/lib/pkcs11/pkcs11_softtoken/common/softDH.c index 06d9c22757..e62ffbf761 100644 --- a/usr/src/lib/pkcs11/pkcs11_softtoken/common/softDH.c +++ b/usr/src/lib/pkcs11/pkcs11_softtoken/common/softDH.c @@ -167,7 +167,7 @@ soft_dh_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) * string PV of length k, the public value. */ if ((rv = soft_genDHkey_set_attribute(pubkey, CKA_VALUE, public_y, - CRYPTO_BITS2BYTES(k.value_bits), B_TRUE)) != CKR_OK) { + prime_len, B_TRUE)) != CKR_OK) { goto ret; } @@ -237,7 +237,7 @@ soft_dh_key_derive(soft_object_t *basekey, soft_object_t *secretkey, k.rfunc = NULL; /* keylen may be modified if it was 0 or conflicts with key type */ - rv = dh_key_derive(&k, secretkey->key_type, key, &keylen); + rv = dh_key_derive(&k, secretkey->key_type, key, &keylen, 0); if (rv != CKR_OK) { goto ret; |
