summaryrefslogtreecommitdiffstats
path: root/libtomcrypt/headers
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-24 02:36:48 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-07-24 04:25:24 +0200
commit6962f9b991bd1c47d1e501e19875372d0301ca53 (patch)
tree13d68a3b8554d2c62d9ca69ebb90c7cacbd65291 /libtomcrypt/headers
parent82c206a8e9d16e439c64d9afbf5afabd9ed1f0ce (diff)
downloadcryptodev-linux-6962f9b991bd1c47d1e501e19875372d0301ca53.tar.gz
cryptodev-linux-6962f9b991bd1c47d1e501e19875372d0301ca53.tar.xz
cryptodev-linux-6962f9b991bd1c47d1e501e19875372d0301ca53.zip
Use algo_properties_st in pkcs_1_oaep_encode
Diffstat (limited to 'libtomcrypt/headers')
-rw-r--r--libtomcrypt/headers/tomcrypt_pkcs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libtomcrypt/headers/tomcrypt_pkcs.h b/libtomcrypt/headers/tomcrypt_pkcs.h
index 8e43942..9cfa81d 100644
--- a/libtomcrypt/headers/tomcrypt_pkcs.h
+++ b/libtomcrypt/headers/tomcrypt_pkcs.h
@@ -3,6 +3,8 @@
/* ===> LTC_PKCS #1 -- RSA Cryptography <=== */
#ifdef LTC_PKCS_1
+struct algo_properties_st;
+
enum ltc_pkcs_1_v1_5_blocks
{
LTC_LTC_PKCS_1_EMSA = 1, /* Block type 1 (LTC_PKCS #1 v1.5 signature padding) */
@@ -42,7 +44,7 @@ int pkcs_1_v1_5_decode(const unsigned char *msg,
/* *** v2.1 padding */
int pkcs_1_oaep_encode(const unsigned char *msg, unsigned long msglen,
const unsigned char *lparam, unsigned long lparamlen,
- unsigned long modulus_bitlen, int hash_idx,
+ unsigned long modulus_bitlen, const struct algo_properties_st *hash,
unsigned char *out, unsigned long *outlen);
int pkcs_1_oaep_decode(const unsigned char *msg, unsigned long msglen,