Home
last modified time | relevance | path

Searched refs:RsaContext (Results 1 – 18 of 18) sorted by relevance

/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pk/
DCryptRsaExt.c57 IN OUT VOID *RsaContext, in RsaGetKey() argument
70 if (RsaContext == NULL || BnSize == NULL) { in RsaGetKey()
74 RsaKey = (RSA *) RsaContext; in RsaGetKey()
204 IN OUT VOID *RsaContext, in RsaGenerateKey() argument
216 if (RsaContext == NULL || ModulusLength > INT_MAX || PublicExponentSize > INT_MAX) { in RsaGenerateKey()
237 if (RSA_generate_key_ex ((RSA *) RsaContext, (UINT32) ModulusLength, KeyE, NULL) == 1) { in RsaGenerateKey()
268 IN VOID *RsaContext in RsaCheckKey() argument
276 if (RsaContext == NULL) { in RsaCheckKey()
280 if (RSA_check_key ((RSA *) RsaContext) != 1) { in RsaCheckKey()
321 IN VOID *RsaContext, in RsaPkcs1Sign() argument
[all …]
DCryptRsaBasic.c55 IN VOID *RsaContext in RsaFree() argument
61 RSA_free ((RSA *) RsaContext); in RsaFree()
89 IN OUT VOID *RsaContext, in RsaSetKey() argument
100 if (RsaContext == NULL || BnSize > INT_MAX) { in RsaSetKey()
104 RsaKey = (RSA *) RsaContext; in RsaSetKey()
285 IN VOID *RsaContext, in RsaPkcs1Verify() argument
298 if (RsaContext == NULL || MessageHash == NULL || Signature == NULL) { in RsaPkcs1Verify()
334 (RSA *) RsaContext in RsaPkcs1Verify()
DCryptRsaExtNull.c40 IN OUT VOID *RsaContext, in RsaGetKey() argument
66 IN OUT VOID *RsaContext, in RsaGenerateKey() argument
89 IN VOID *RsaContext in RsaCheckKey() argument
114 IN VOID *RsaContext, in RsaPkcs1Sign() argument
DCryptPkcs7Sign.c63 UINT8 *RsaContext; in Pkcs7Sign() local
76 RsaContext = NULL; in Pkcs7Sign()
89 (VOID **) &RsaContext in Pkcs7Sign()
119 if (EVP_PKEY_assign_RSA (Key, (RSA *) RsaContext) == 0) { in Pkcs7Sign()
187 if (RsaContext != NULL) { in Pkcs7Sign()
188 RsaFree (RsaContext); in Pkcs7Sign()
DCryptX509.c321 OUT VOID **RsaContext in RsaGetPublicKeyFromX509() argument
331 if (Cert == NULL || RsaContext == NULL) { in RsaGetPublicKeyFromX509()
360 if ((*RsaContext = RSAPublicKey_dup (Pkey->pkey.rsa)) != NULL) { in RsaGetPublicKeyFromX509()
DCryptX509Null.c149 OUT VOID **RsaContext in RsaGetPublicKeyFromX509() argument
/device/linaro/bootloader/edk2/CryptoPkg/CryptRuntimeDxe/
DCryptRuntime.c149 IN VOID *RsaContext in RuntimeCryptRsaFree() argument
152 RsaFree (RsaContext); in RuntimeCryptRsaFree()
174 IN OUT VOID *RsaContext, in RuntimeCryptRsaSetKey() argument
180 return RsaSetKey (RsaContext, KeyTag, BigNumber, BnLength); in RuntimeCryptRsaSetKey()
205 IN VOID *RsaContext, in RuntimeCryptRsaPkcs1Verify() argument
212 return RsaPkcs1Verify (RsaContext, MessageHash, HashLength, Signature, SigLength); in RuntimeCryptRsaPkcs1Verify()
DCryptRuntime.h128 IN VOID *RsaContext
150 IN OUT VOID *RsaContext,
179 IN VOID *RsaContext,
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
DIpSecCryptIo.c824 UINT8 *RsaContext; in IpSecCryptoIoAuthDataWithCertificate() local
829 RsaContext = NULL; in IpSecCryptoIoAuthDataWithCertificate()
838 (VOID **) &RsaContext in IpSecCryptoIoAuthDataWithCertificate()
840 if (RsaContext == NULL) { in IpSecCryptoIoAuthDataWithCertificate()
848 if (!RsaPkcs1Sign (RsaContext, InData, InDataSize, Signature, &SigSize)) { in IpSecCryptoIoAuthDataWithCertificate()
854 RsaPkcs1Sign (RsaContext, InData, InDataSize, Signature, &SigSize); in IpSecCryptoIoAuthDataWithCertificate()
859 if (RsaContext != NULL) { in IpSecCryptoIoAuthDataWithCertificate()
860 RsaFree (RsaContext); in IpSecCryptoIoAuthDataWithCertificate()
893 UINT8 *RsaContext; in IpSecCryptoIoVerifySignDataByCertificate() local
899 RsaContext = RsaNew (); in IpSecCryptoIoVerifySignDataByCertificate()
[all …]
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/
DCryptRsaExtNull.c40 IN OUT VOID *RsaContext, in RsaGetKey() argument
66 IN OUT VOID *RsaContext, in RsaGenerateKey() argument
89 IN VOID *RsaContext in RsaCheckKey() argument
114 IN VOID *RsaContext, in RsaPkcs1Sign() argument
DCryptX509Null.c149 OUT VOID **RsaContext in RsaGetPublicKeyFromX509() argument
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pem/
DCryptPem.c76 OUT VOID **RsaContext in RsaGetPrivateKeyFromPem() argument
85 if (PemData == NULL || RsaContext == NULL || PemSize > INT_MAX) { in RsaGetPrivateKeyFromPem()
123 …*RsaContext = PEM_read_bio_RSAPrivateKey (PemBio, NULL, (pem_password_cb *) &PasswordCallback, (vo… in RsaGetPrivateKeyFromPem()
124 if (*RsaContext != NULL) { in RsaGetPrivateKeyFromPem()
DCryptPemNull.c39 OUT VOID **RsaContext in RsaGetPrivateKeyFromPem() argument
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/
DRuntimeDxeIpfCryptLib.c331 IN VOID *RsaContext in RsaFree() argument
338 mCryptProtocol->RsaFree (RsaContext); in RsaFree()
366 IN OUT VOID *RsaContext, in RsaSetKey() argument
376 return mCryptProtocol->RsaSetKey (RsaContext, KeyTag, BigNumber, BnSize); in RsaSetKey()
401 IN VOID *RsaContext, in RsaPkcs1Verify() argument
413 RsaContext, in RsaPkcs1Verify()
/device/linaro/bootloader/edk2/CryptoPkg/Include/Protocol/
DRuntimeCrypt.h131 IN VOID *RsaContext
153 IN OUT VOID *RsaContext,
181 IN VOID *RsaContext,
/device/linaro/bootloader/edk2/CryptoPkg/Include/Library/
DBaseCryptLib.h1805 IN VOID *RsaContext
1833 IN OUT VOID *RsaContext,
1870 IN OUT VOID *RsaContext,
1902 IN OUT VOID *RsaContext,
1932 IN VOID *RsaContext
1965 IN VOID *RsaContext,
1994 IN VOID *RsaContext,
2026 OUT VOID **RsaContext
2052 OUT VOID **RsaContext
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pem/
DCryptPemNull.c39 OUT VOID **RsaContext in RsaGetPrivateKeyFromPem() argument
/device/linaro/bootloader/edk2/SecurityPkg/Library/AuthVariableLib/
DAuthService.c749 VOID *RsaContext; in CheckSignatureListFormat() local
773 RsaContext = NULL; in CheckSignatureListFormat()
810 RsaContext = RsaNew (); in CheckSignatureListFormat()
811 if (RsaContext == NULL) { in CheckSignatureListFormat()
816 if (!RsaGetPublicKeyFromX509 (CertData->SignatureData, CertLen, &RsaContext)) { in CheckSignatureListFormat()
817 RsaFree (RsaContext); in CheckSignatureListFormat()
820 RsaFree (RsaContext); in CheckSignatureListFormat()