diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-07-24 02:20:45 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-07-24 04:25:24 +0200 |
commit | b92da3d22f38bfbc9187032d273a8de39f9bb423 (patch) | |
tree | a29ccb26d2df5cab5ee05c3707769d278a95d721 /libtomcrypt/headers/tomcrypt_pk.h | |
parent | 5a0f78d7300975afc64f51ad217e69f71aa0aa55 (diff) | |
download | cryptodev-linux-b92da3d22f38bfbc9187032d273a8de39f9bb423.tar.gz cryptodev-linux-b92da3d22f38bfbc9187032d273a8de39f9bb423.tar.xz cryptodev-linux-b92da3d22f38bfbc9187032d273a8de39f9bb423.zip |
Use algo_properties_st in rsa_sign_hash_ex
Diffstat (limited to 'libtomcrypt/headers/tomcrypt_pk.h')
-rw-r--r-- | libtomcrypt/headers/tomcrypt_pk.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libtomcrypt/headers/tomcrypt_pk.h b/libtomcrypt/headers/tomcrypt_pk.h index cc5e6c2..1e0b62a 100644 --- a/libtomcrypt/headers/tomcrypt_pk.h +++ b/libtomcrypt/headers/tomcrypt_pk.h @@ -65,8 +65,8 @@ void rsa_free(rsa_key *key); #define rsa_decrypt_key(_in, _inlen, _out, _outlen, _lparam, _lparamlen, _hash, _stat, _key) \ rsa_decrypt_key_ex(_in, _inlen, _out, _outlen, _lparam, _lparamlen, _hash, LTC_LTC_PKCS_1_OAEP, _stat, _key) -#define rsa_sign_hash(_in, _inlen, _out, _outlen, _hash_idx, _saltlen, _key) \ - rsa_sign_hash_ex(_in, _inlen, _out, _outlen, LTC_LTC_PKCS_1_PSS, _hash_idx, _saltlen, _key) +#define rsa_sign_hash(_in, _inlen, _out, _outlen, _hash, _saltlen, _key) \ + rsa_sign_hash_ex(_in, _inlen, _out, _outlen, LTC_LTC_PKCS_1_PSS, _hash, _saltlen, _key) #define rsa_verify_hash(_sig, _siglen, _hash, _hashlen, _hash_idx, _saltlen, _stat, _key) \ rsa_verify_hash_ex(_sig, _siglen, _hash, _hashlen, LTC_LTC_PKCS_1_PSS, _hash_idx, _saltlen, _stat, _key) @@ -86,7 +86,7 @@ int rsa_decrypt_key_ex(const unsigned char *in, unsigned long inlen, int rsa_sign_hash_ex(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen, int padding, - int hash_idx, unsigned long saltlen, + const struct algo_properties_st *hash, unsigned long saltlen, rsa_key *key); int rsa_verify_hash_ex(const unsigned char *sig, unsigned long siglen, |