summaryrefslogtreecommitdiff
path: root/crypto_libraries/inc
diff options
context:
space:
mode:
Diffstat (limited to 'crypto_libraries/inc')
-rw-r--r--crypto_libraries/inc/nx_crypto_const.h1
-rw-r--r--crypto_libraries/inc/nx_crypto_rsa.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/crypto_libraries/inc/nx_crypto_const.h b/crypto_libraries/inc/nx_crypto_const.h
index 55f30b39..5c5fa851 100644
--- a/crypto_libraries/inc/nx_crypto_const.h
+++ b/crypto_libraries/inc/nx_crypto_const.h
@@ -150,6 +150,7 @@ extern "C" {
#define NX_CRYPTO_DIGITAL_SIGNATURE_RSA 0x00050001
#define NX_CRYPTO_DIGITAL_SIGNATURE_DSA 0x00050002
#define NX_CRYPTO_DIGITAL_SIGNATURE_ECDSA 0x00050003
+#define NX_CRYPTO_DIGITAL_SIGNATURE_RSAPSS 0x00050004
/*Define the elliptic curve algorithm */
/* Values of 16 least significant bits are the same as named curve defined in RFC 4492, section 5.1.1 */
diff --git a/crypto_libraries/inc/nx_crypto_rsa.h b/crypto_libraries/inc/nx_crypto_rsa.h
index 609e9198..587d9858 100644
--- a/crypto_libraries/inc/nx_crypto_rsa.h
+++ b/crypto_libraries/inc/nx_crypto_rsa.h
@@ -116,6 +116,12 @@ UINT _nx_crypto_method_rsa_init(struct NX_CRYPTO_METHOD_STRUCT *method,
VOID **handle,
VOID *crypto_metadata, ULONG crypto_metadata_size);
+UINT _nx_crypto_rsa_pss_verify(const UCHAR *message_hash, UINT hash_length,
+ const UCHAR *em, UINT em_bits,
+ const NX_CRYPTO_METHOD *hash_method,
+ VOID *hash_metadata, ULONG hash_metadata_size,
+ UCHAR *scratch, UINT scratch_length);
+
#ifdef __cplusplus
}
#endif