Home
last modified time | relevance | path

Searched refs:DataInSize (Results 1 – 13 of 13) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dcc_rsa_schemes.c90 size_t DataInSize, in CC_RsaSchemesEncrypt() argument
138 if (DataIn_ptr == NULL && DataInSize != 0) in CC_RsaSchemesEncrypt()
180 if (DataInSize + 3 + PS_MIN_LEN > K ) in CC_RsaSchemesEncrypt()
183 PSSize = K - 3 - DataInSize; in CC_RsaSchemesEncrypt()
198 EB_buff[K-DataInSize-1] = 0x00; in CC_RsaSchemesEncrypt()
200 if (DataInSize > 0) in CC_RsaSchemesEncrypt()
201 CC_PalMemCopy(&EB_buff[K-DataInSize], DataIn_ptr, DataInSize); in CC_RsaSchemesEncrypt()
240 if ((uint32_t)DataInSize + 2 * HashOutputSize + 2 > K) in CC_RsaSchemesEncrypt()
254 DataInSize, /*! input data size bytes */ in CC_RsaSchemesEncrypt()
348 size_t DataInSize, in CC_RsaSchemesDecrypt() argument
[all …]
Dcc_rsa_verify.c305 size_t DataInSize) in CC_RsaVerifyUpdate() argument
328 if (DataIn_ptr == NULL && DataInSize) { in CC_RsaVerifyUpdate()
335 if (DataInSize >= (1UL << 29)) { in CC_RsaVerifyUpdate()
349 Error = mbedtls_md_update(&ccmWorkingContext_ptr->RsaHashCtx, DataIn_ptr, DataInSize); in CC_RsaVerifyUpdate()
355 DataInSize ); in CC_RsaVerifyUpdate()
361 if (DataInSize != ccmWorkingContext_ptr->HASH_Result_Size*sizeof(uint32_t)) { in CC_RsaVerifyUpdate()
366 CC_PalMemCopy((uint8_t *)ccmWorkingContext_ptr->HASH_Result, DataIn_ptr, DataInSize); in CC_RsaVerifyUpdate()
410 size_t DataInSize) in CC_RsaVerifyFinish() argument
509 DataInSize); in CC_RsaVerifyFinish()
587 size_t DataInSize, in CC_RsaVerify() argument
[all …]
Dcc_rsa_sign.c295 size_t DataInSize) in CC_RsaSignUpdate() argument
319 if (DataIn_ptr == NULL && DataInSize) { in CC_RsaSignUpdate()
326 if (DataInSize >= (1 << 29)) { in CC_RsaSignUpdate()
340 Error = mbedtls_md_update(&ccmWorkingContext_ptr->RsaHashCtx, DataIn_ptr, DataInSize); in CC_RsaSignUpdate()
346 DataInSize ); in CC_RsaSignUpdate()
352 if (DataInSize != ccmWorkingContext_ptr->HASH_Result_Size*sizeof(uint32_t)) { in CC_RsaSignUpdate()
357 CC_PalMemCopy((uint8_t *)ccmWorkingContext_ptr->HASH_Result, DataIn_ptr, DataInSize); in CC_RsaSignUpdate()
418 size_t DataInSize) in CC_RsaSignFinish() argument
518 DataInSize); in CC_RsaSignFinish()
627 size_t DataInSize, in CC_RsaSign() argument
[all …]
Dcc_rsa_local.h136 size_t DataInSize);
319 …size_t DataInSize /*!< [in] The size, in bytes, of the data to sign. …
347 …size_t DataInSize /*!< [in] Size in bytes of the raw input data pointed by …
387 …size_t DataInSize /*!< [in] The size, in bytes, of the data whose s…
405 …size_t DataInSize /*!< [in] Size in bytes of the structure T passed as raw…
Dcc_rsa_pkcs_ver15_util.c189 size_t DataInSize) in RsaEmsaPkcs1v15Encode() argument
224 if (K < DataInSize+11) { in RsaEmsaPkcs1v15Encode()
227 PSSize = K-DataInSize-3; in RsaEmsaPkcs1v15Encode()
242 CC_PalMemCopy(&pOut[3+PSSize], DataIn_ptr, DataInSize); in RsaEmsaPkcs1v15Encode()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/
Dcc_rsa_schemes.h60 …size_t DataInSize, /*!< [in] The size (in bytes) of the data to encrypt. The…
92 #define CC_RsaPkcs1V15Encrypt(rndContext_ptr, UserPubKey_ptr,PrimeData_ptr,DataIn_ptr,DataInSize,Ou… argument
93 …imeData_ptr,CC_RSA_HASH_NO_HASH_mode,NULL,0,CC_PKCS1_NO_MGF,DataIn_ptr,DataInSize, Output_ptr,CC_P…
124 …size_t DataInSize, /*!< [in] The size (in bytes) of the data to decrypt. Da…
164 #define CC_RsaPkcs1V15Decrypt(UserPrivKey_ptr,PrimeData_ptr,DataIn_ptr,DataInSize,Output_ptr,Output… argument
165 …imeData_ptr,CC_RSA_HASH_NO_HASH_mode,NULL,0,CC_PKCS1_NO_MGF,DataIn_ptr,DataInSize,Output_ptr,Outpu…
198 …size_t DataInSize, /*!< [in] The size (in bytes) of the data to sign. …
218 …gn(rndContext_ptr, UserContext_ptr,UserPrivKey_ptr,hashFunc,DataIn_ptr,DataInSize,Output_ptr,Outpu… argument
219 …xt_ptr),(UserPrivKey_ptr),(hashFunc),(CC_PKCS1_NO_MGF),0,(DataIn_ptr),(DataInSize),(Output_ptr),(O…
297 …t_ptr, UserContext_ptr,UserPrivKey_ptr,hashFunc,MGF,SaltLen,DataIn_ptr,DataInSize,Output_ptr,Outpu… argument
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/dmpu_asset_pkg_util/oem_key_request/lib/
Dmain.c48 unsigned int DataInSize, in SBU_RSA_Sign() argument
78 ret_code = Sign_v21(pRsaPrivKey, DataIn_ptr, DataInSize, Signature_ptr); in SBU_RSA_Sign()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/
Dcommon_sb_ops.c45 int DataInSize, char *Signature_ptr, in Sign_v15() argument
68 if (!EVP_SignUpdate(md_ctx, DataIn_ptr, DataInSize)) in Sign_v15()
89 if (!EVP_VerifyUpdate(md_ctx, DataIn_ptr, DataInSize)) in Sign_v15()
115 int DataInSize, char *Signature_ptr) in Sign_v21() argument
127 EVP_DigestUpdate(&md_ctx, (const void*) DataIn_ptr, DataInSize); in Sign_v21()
Dcommon_sb_ops.h168 int DataInSize, char *Signature_ptr,
185 int DataInSize, char *Signature_ptr);
Dcommon_crypto_asym.h58 uint32_t DataInSize,
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/common_utils/
Dcert_dbg_util_gen.py47 DataInSize = len(DataIn)
55 result = CryptoDLL_handle.SBU_RSA_Sign(1, p3, DataInSize, p1, p2, Signature)
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/cert_lib/
Dmain.c51 unsigned int DataInSize, in SBU_RSA_Sign() argument
82 ret_code = Sign_v15(pRsaPrivKey, DataIn_ptr, DataInSize, Signature_ptr, pwd); in SBU_RSA_Sign()
84 ret_code = Sign_v21(pRsaPrivKey, DataIn_ptr, DataInSize, Signature_ptr); in SBU_RSA_Sign()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/dmpu_asset_pkg_util/common/
Ddmpu_util_crypto_helper.py105 DataInSize = len(DataIn)
113 result = CryptoDLL_handle.SBU_RSA_Sign(1, p3, DataInSize, p1, p2, Signature)