summaryrefslogtreecommitdiffstats
path: root/libtomcrypt/headers
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-24 02:24:51 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-07-24 04:25:24 +0200
commitfad50a3c690dc2d52b0f568b714a0cfcf072c938 (patch)
treec6467186aa2e97dcbcb687c08a57c7e06f21dba3 /libtomcrypt/headers
parentb92da3d22f38bfbc9187032d273a8de39f9bb423 (diff)
downloadcryptodev-linux-fad50a3c690dc2d52b0f568b714a0cfcf072c938.tar.gz
cryptodev-linux-fad50a3c690dc2d52b0f568b714a0cfcf072c938.tar.xz
cryptodev-linux-fad50a3c690dc2d52b0f568b714a0cfcf072c938.zip
Use algo_properties_st in rsa_verify_hash_ex
Diffstat (limited to 'libtomcrypt/headers')
-rw-r--r--libtomcrypt/headers/tomcrypt_pk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libtomcrypt/headers/tomcrypt_pk.h b/libtomcrypt/headers/tomcrypt_pk.h
index 1e0b62a..145165e 100644
--- a/libtomcrypt/headers/tomcrypt_pk.h
+++ b/libtomcrypt/headers/tomcrypt_pk.h
@@ -68,8 +68,8 @@ void rsa_free(rsa_key *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)
+#define rsa_verify_hash(_sig, _siglen, _hash, _hashlen, _hash_algo, _saltlen, _stat, _key) \
+ rsa_verify_hash_ex(_sig, _siglen, _hash, _hashlen, LTC_LTC_PKCS_1_PSS, _hash_algo, _saltlen, _stat, _key)
/* These can be switched between LTC_PKCS #1 v2.x and LTC_PKCS #1 v1.5 paddings */
int rsa_encrypt_key_ex(const unsigned char *in, unsigned long inlen,
@@ -92,7 +92,7 @@ int rsa_sign_hash_ex(const unsigned char *in, unsigned long inlen,
int rsa_verify_hash_ex(const unsigned char *sig, unsigned long siglen,
const unsigned char *hash, unsigned long hashlen,
int padding,
- int hash_idx, unsigned long saltlen,
+ const struct algo_properties_st *hash_algo, unsigned long saltlen,
int *stat, rsa_key *key);
/* LTC_PKCS #1 import/export */