19 #ifndef __CRYPTO_INTERFACE_PKCS1_HEADER__ 20 #define __CRYPTO_INTERFACE_PKCS1_HEADER__ 52 MOC_RSA(hwAccelDescr hwAccelCtx)
53 randomContext *pRandomContext,
54 const RSAKey *pRSAKey,
58 const ubyte *pMessage,
63 ubyte4 *pCipherTextLen
89 MOC_RSA(hwAccelDescr hwAccelCtx)
90 const RSAKey *pRSAKey,
94 const ubyte *pCipherText,
127 MOC_RSA(hwAccelDescr hwAccelCtx)
128 randomContext *pRandomContext,
129 const RSAKey *pRSAKey,
133 const ubyte *pMessage,
137 ubyte4 *pSignatureLen,
165 MOC_RSA(hwAccelDescr hwAccelCtx)
166 randomContext *pRandomContext,
167 const RSAKey *pRSAKey,
171 const ubyte *pMessage,
175 ubyte4 *pSignatureLen
203 MOC_RSA(hwAccelDescr hwAccelCtx)
204 const RSAKey *pRSAKey,
208 const ubyte *pMessage,
210 const ubyte *pSignature,
241 MOC_RSA(hwAccelDescr hwAccelCtx)
242 const RSAKey *pRSAKey,
246 const ubyte *pMessage,
248 const ubyte *pSignature,
278 MOC_RSA(hwAccelDescr hwAccelCtx)
279 const RSAKey *pRSAKey,
282 const ubyte *
const pMessage,
284 const ubyte *pSignature,
287 intBoolean *pRetIsSignatureValid
317 MOC_RSA(hwAccelDescr hwAccelCtx)
318 const ubyte *mgfSeed,
353 MOC_RSA(hwAccelDescr hwAccelCtx)
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_PKCS1_rsaOaepDecrypt(MOC_RSA(hwAccelDescr hwAccelCtx) const RSAKey *pRSAKey, ubyte hashAlgo, ubyte mgfAlgo, ubyte mgfHashAlgo, const ubyte *pCipherText, ubyte4 cLen, const ubyte *pLabel, ubyte4 lLen, ubyte **ppPlainText, ubyte4 *pPlainTextLen)
Perform RSA-OAEP decryption.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_PKCS1_rsaPssVerify(MOC_RSA(hwAccelDescr hwAccelCtx) const RSAKey *pRSAKey, ubyte hashAlgo, ubyte mgfAlgo, ubyte mgfHashAlgo, const ubyte *pMessage, ubyte4 mLen, const ubyte *pSignature, ubyte4 signatureLen, sbyte4 saltLen, ubyte4 *pVerify)
Use the provided RSA Key to verify a PSS signature.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_PKCS1_MGF1(MOC_RSA(hwAccelDescr hwAccelCtx) const ubyte *mgfSeed, ubyte4 mgfSeedLen, ubyte4 maskLen, BulkHashAlgo *H, ubyte **ppRetMask)
Generate an MGF1 mask based on a given hash function, as defined in RFC 3447.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_PKCS1_rsaPssPad(MOC_RSA(hwAccelDescr hwAccelCtx) RSAKey *pKey, RNGFun rngFun, void *rngFunArg, ubyte *M, ubyte4 mLen, ubyte4 sLen, ubyte hashAlgo, ubyte mgfAlgo, ubyte mgfHashAlgo, ubyte **ppRetEM, ubyte4 *pRetEMLen)
Used to generated RSA-PSS padded data.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_PKCS1_rsaPssVerifyExt(MOC_RSA(hwAccelDescr hwAccelCtx) const RSAKey *pRSAKey, ubyte hashAlgo, ubyte mgfAlgo, ubyte mgfHashAlgo, const ubyte *pMessage, ubyte4 mLen, const ubyte *pSignature, ubyte4 signatureLen, sbyte4 saltLen, ubyte4 *pVerify, void *pExtCtx)
Use the provided RSA Key to verify a PSS signature.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_PKCS1_rsaOaepEncrypt(MOC_RSA(hwAccelDescr hwAccelCtx) randomContext *pRandomContext, const RSAKey *pRSAKey, ubyte hashAlgo, ubyte mgfAlgo, ubyte mgfHashAlgo, const ubyte *pMessage, ubyte4 mLen, const ubyte *pLabel, ubyte4 lLen, ubyte **ppCipherText, ubyte4 *pCipherTextLen)
Perform RSA-OAEP encryption.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_PKCS1_rsaPssSignExt(MOC_RSA(hwAccelDescr hwAccelCtx) randomContext *pRandomContext, const RSAKey *pRSAKey, ubyte hashAlgo, ubyte mgfAlgo, ubyte mgfHashAlgo, const ubyte *pMessage, ubyte4 mLen, ubyte4 saltLen, ubyte **ppSignature, ubyte4 *pSignatureLen, void *pExtCtx)
Use the provided RSA Key to sign some data using the PSS scheme.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_PKCS1_rsaPssSign(MOC_RSA(hwAccelDescr hwAccelCtx) randomContext *pRandomContext, const RSAKey *pRSAKey, ubyte hashAlgo, ubyte mgfAlgo, ubyte mgfHashAlgo, const ubyte *pMessage, ubyte4 mLen, ubyte4 saltLen, ubyte **ppSignature, ubyte4 *pSignatureLen)
Use the provided RSA Key to sign some data using the PSS scheme.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_PKCS1_rsassaPssVerify(MOC_RSA(hwAccelDescr hwAccelCtx) const RSAKey *pRSAKey, ubyte H_rsaAlgoId, mgfFunc MGF, const ubyte *const pMessage, ubyte4 mesgLen, const ubyte *pSignature, ubyte4 signatureLen, sbyte4 saltLen, intBoolean *pRetIsSignatureValid)
Use the provided RSA Key to verify a PSS signature.