diff options
author | Rob Austein <sra@hactrn.net> | 2017-09-13 20:20:55 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-09-13 20:20:55 -0400 |
commit | 410e0cf1d22c67585f0a5346e62f60aa4e90fe05 (patch) | |
tree | 4650beec709d2128e6a03a5b09645e295c7a2797 /rpc_pkey.c | |
parent | 5522df4f68bfa66b9b4446fdfb92783694586f70 (diff) |
Preliminary support for parallel core RSA CRT.
Diffstat (limited to 'rpc_pkey.c')
-rw-r--r-- | rpc_pkey.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -760,8 +760,8 @@ static hal_error_t pkey_local_sign_rsa(hal_pkey_slot_t *slot, input = signature; } - if ((err = pkcs1_5_pad(input, input_len, signature, *signature_len, 0x01)) != HAL_OK || - (err = hal_rsa_decrypt(NULL, key, signature, *signature_len, signature, *signature_len)) != HAL_OK) + if ((err = pkcs1_5_pad(input, input_len, signature, *signature_len, 0x01)) != HAL_OK || + (err = hal_rsa_decrypt(NULL, NULL, key, signature, *signature_len, signature, *signature_len)) != HAL_OK) return err; if (hal_rsa_key_needs_saving(key)) { @@ -1276,7 +1276,7 @@ static hal_error_t pkey_local_import(const hal_client_handle_t client, goto fail; } - if ((err = hal_rsa_decrypt(NULL, rsa, data, data_len, der, data_len)) != HAL_OK) + if ((err = hal_rsa_decrypt(NULL, NULL, rsa, data, data_len, der, data_len)) != HAL_OK) goto fail; if ((err = hal_get_random(NULL, kek, sizeof(kek))) != HAL_OK) |