diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-04-10 14:55:04 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-04-10 14:55:04 +0200 |
commit | f9a6348a537290f65fd76d945419a4c9bafff012 (patch) | |
tree | c892b5d1dd48cddb2c35a86f039a46666907d3c0 /crypto/rsa/rsa.h | |
parent | Preliminary PSS support. (diff) | |
download | openssl-f9a6348a537290f65fd76d945419a4c9bafff012.tar.xz openssl-f9a6348a537290f65fd76d945419a4c9bafff012.zip |
ctrls to set PSS salt length.
Diffstat (limited to 'crypto/rsa/rsa.h')
-rw-r--r-- | crypto/rsa/rsa.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/rsa/rsa.h b/crypto/rsa/rsa.h index 6df1e67fb6..e9225a53c6 100644 --- a/crypto/rsa/rsa.h +++ b/crypto/rsa/rsa.h @@ -197,7 +197,14 @@ struct rsa_st EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, -1, EVP_PKEY_CTRL_RSA_PADDING, \ pad, NULL) +#define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, \ + (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \ + EVP_PKEY_CTRL_RSA_PSS_SALTLEN, \ + len, NULL) + #define EVP_PKEY_CTRL_RSA_PADDING (EVP_PKEY_ALG_CTRL + 1) +#define EVP_PKEY_CTRL_RSA_PSS_SALTLEN (EVP_PKEY_ALG_CTRL + 2) #define RSA_PKCS1_PADDING 1 #define RSA_SSLV23_PADDING 2 |