Security Builder Crypto supports the following:
- PKCS#1 Version 1.5 encryption scheme
- PKCS#1 Version 1.5 signature algorithm
- PKCS #1 Version 2.1 (OAEP) encryption/decryption functions
- Exponentiation functions with PKCS#1 signature padding.
The PKCS#1 functions are defined in the file hursa.h.
The PKCS#1 version 1.5 signature functions require a hash algorithm to be specified. The identifier for the hash algorithms are defined as follows:
-
SB_RSA_PKCS1_V15_SIG_SHA1
-
SB_RSA_PKCS1_V15_SIG_MD5
-
SB_RSA_PKCS1_V15_SIG_MD2
-
SB_RSA_PKCS1_V15_SIG_SHA224
-
SB_RSA_PKCS1_V15_SIG_SHA256
-
SB_RSA_PKCS1_V15_SIG_SHA384
-
SB_RSA_PKCS1_V15_SIG_SHA512
The hu_RSAPKCS*() functions require an RSA parameters object and RSA key objects.