Home
last modified time | relevance | path

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

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/
Dcc_rsa_schemes.h46 … CCRsaUserPubKey_t *UserPubKey_ptr, /*!< [in] Pointer to the public key data structure. */
84 #define CC_RsaOaepEncrypt(rndContext_ptr, UserPubKey_ptr,PrimeData_ptr,HashMode,L,Llen,MGF,Data_ptr… argument
85 …CC_RsaSchemesEncrypt(rndContext_ptr, UserPubKey_ptr,PrimeData_ptr,HashMode,L,Llen,MGF,Data_ptr,Dat…
92 #define CC_RsaPkcs1V15Encrypt(rndContext_ptr, UserPubKey_ptr,PrimeData_ptr,DataIn_ptr,DataInSize,Ou… argument
93 …CC_RsaSchemesEncrypt(rndContext_ptr, UserPubKey_ptr,PrimeData_ptr,CC_RSA_HASH_NO_HASH_mode,NULL,0,…
386 …CCRsaUserPubKey_t *UserPubKey_ptr, /*!< [in] Pointer to the public key data structure o…
412 #define CC_RsaPkcs1V15Verify(UserContext_ptr,UserPubKey_ptr,hashFunc,DataIn_ptr,DataInSize,Sig_ptr)\ argument
413 …CC_RsaVerify(UserContext_ptr,UserPubKey_ptr,hashFunc,CC_PKCS1_NO_MGF,0,DataIn_ptr,DataInSize,Sig_p…
421 #define CC_RsaPkcs1V15Md5Verify(UserContext_ptr,UserPubKey_ptr,DataIn_ptr,Sig_ptr)\ argument
422 …CC_RsaVerify(UserContext_ptr,UserPubKey_ptr,CC_RSA_After_MD5_mode,CC_PKCS1_NO_MGF,0,DataIn_ptr,CC_…
[all …]
Dcc_rsa_build.h40 … CCRsaUserPubKey_t *UserPubKey_ptr, /*!< [out] Pointer to the public key structure. */
104 … CCRsaUserPubKey_t *UserPubKey_ptr, /*!< [in] A pointer to the public key structure. */
Dcc_rsa_prim.h48 … CCRsaUserPubKey_t *UserPubKey_ptr, /*!< [in] Pointer to the public-key data structure. */
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dccsw_rsa_kg.c96 CCSwRsaUserPubKey_t *UserPubKey_ptr, in CC_SwRsaKgGenerateKeyPair() argument
137 if (UserPubKey_ptr == NULL) in CC_SwRsaKgGenerateKeyPair()
156 PubKey_ptr = ( SwRsaPubKey_t *)UserPubKey_ptr->PublicKeyDbBuff; in CC_SwRsaKgGenerateKeyPair()
160 CC_PalMemSet( UserPubKey_ptr, 0, sizeof(CCSwRsaUserPubKey_t) ); in CC_SwRsaKgGenerateKeyPair()
263 UserPubKey_ptr->valid_tag = CC_RSA_PUB_KEY_VALIDATION_TAG; in CC_SwRsaKgGenerateKeyPair()
315 CCSwRsaUserPubKey_t *UserPubKey_ptr, in CC_SwRsaKgGenerateKeyPairCRT() argument
347 if (UserPubKey_ptr == NULL) in CC_SwRsaKgGenerateKeyPairCRT()
365 PubKey_ptr = ( SwRsaPubKey_t *)UserPubKey_ptr->PublicKeyDbBuff; in CC_SwRsaKgGenerateKeyPairCRT()
373 CC_PalMemSet( UserPubKey_ptr , 0 , sizeof(CCSwRsaUserPubKey_t) ); in CC_SwRsaKgGenerateKeyPairCRT()
485 UserPubKey_ptr->valid_tag = CC_RSA_PUB_KEY_VALIDATION_TAG; in CC_SwRsaKgGenerateKeyPairCRT()
[all …]
Dcc_rsa_verify.c74 CCRsaUserPubKey_t *UserPubKey_ptr, in CC_RsaVerifyInit() argument
114 if (UserPubKey_ptr == NULL){ in CC_RsaVerifyInit()
145 if (UserPubKey_ptr->valid_tag != CC_RSA_PUB_KEY_VALIDATION_TAG){ in CC_RsaVerifyInit()
153 PubKey_ptr = (CCRsaPubKey_t *)UserPubKey_ptr->PublicKeyDbBuff; in CC_RsaVerifyInit()
256 …CC_PalMemCopy((uint8_t *)&ccmWorkingContext_ptr->PubUserKey,(uint8_t *)UserPubKey_ptr,sizeof(CCRsa… in CC_RsaVerifyInit()
262 …ccmWorkingContext_ptr->nSizeInBytes = CALC_FULL_BYTES(((CCRsaPubKey_t*)UserPubKey_ptr->PublicKeyDb… in CC_RsaVerifyInit()
582 CCRsaUserPubKey_t *UserPubKey_ptr, in CC_RsaVerify() argument
603 UserPubKey_ptr, in CC_RsaVerify()
Dccsw_rsa_kg.h55 CCSwRsaUserPubKey_t *UserPubKey_ptr,
94 CCSwRsaUserPubKey_t *UserPubKey_ptr,
Dcc_rsa_prim.c65 CEXPORT_C CCError_t CC_RsaPrimEncrypt(CCRsaUserPubKey_t *UserPubKey_ptr, in CC_RsaPrimEncrypt() argument
93 if (UserPubKey_ptr == NULL) in CC_RsaPrimEncrypt()
97 if (UserPubKey_ptr->valid_tag != CC_RSA_PUB_KEY_VALIDATION_TAG) in CC_RsaPrimEncrypt()
117 PubKey_ptr = (CCRsaPubKey_t*)UserPubKey_ptr->PublicKeyDbBuff; in CC_RsaPrimEncrypt()
Dcc_rsa_build.c56 CCRsaUserPubKey_t *UserPubKey_ptr, in CC_RsaPubKeyBuild() argument
89 if (UserPubKey_ptr == NULL) in CC_RsaPubKeyBuild()
109 PubKey_ptr = ( CCRsaPubKey_t * )UserPubKey_ptr->PublicKeyDbBuff; in CC_RsaPubKeyBuild()
185 UserPubKey_ptr->valid_tag = CC_RSA_PUB_KEY_VALIDATION_TAG; in CC_RsaPubKeyBuild()
194 CC_PalMemSetZero(UserPubKey_ptr, sizeof(CCRsaUserPubKey_t)); in CC_RsaPubKeyBuild()
726 CCRsaUserPubKey_t *UserPubKey_ptr, in CC_RsaPubKeyGet() argument
750 if (UserPubKey_ptr == NULL) in CC_RsaPubKeyGet()
768 if (UserPubKey_ptr->valid_tag != CC_RSA_PUB_KEY_VALIDATION_TAG) in CC_RsaPubKeyGet()
774 PubKey_ptr = ( CCRsaPubKey_t * )UserPubKey_ptr->PublicKeyDbBuff; in CC_RsaPubKeyGet()
Dcc_rsa_schemes.c83 CCRsaUserPubKey_t *UserPubKey_ptr, in CC_RsaSchemesEncrypt() argument
117 if (UserPubKey_ptr == NULL) in CC_RsaSchemesEncrypt()
145 PubKey_ptr = (CCRsaPubKey_t *)UserPubKey_ptr->PublicKeyDbBuff; in CC_RsaSchemesEncrypt()
147 if (UserPubKey_ptr->valid_tag != CC_RSA_PUB_KEY_VALIDATION_TAG) in CC_RsaSchemesEncrypt()
274 Error = CC_RsaPrimEncrypt(UserPubKey_ptr, in CC_RsaSchemesEncrypt()
Dcc_rsa_local.h363 …CCRsaUserPubKey_t *UserPubKey_ptr, /*!< [in] A pointer to the public key data structure…
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/
Dcc3xx_internal_rsa_util.h95 CCRsaUserPubKey_t *UserPubKey_ptr);
103 CCRsaUserPubKey_t *UserPubKey_ptr);
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Drsa_alt.c1470 OUT CCRsaUserPubKey_t *UserPubKey_ptr) in build_cc_pubkey() argument
1516 PubKey_ptr = ( CCRsaPubKey_t * )UserPubKey_ptr->PublicKeyDbBuff; in build_cc_pubkey()
1580 UserPubKey_ptr->valid_tag = CC_RSA_PUB_KEY_VALIDATION_TAG; in build_cc_pubkey()
1588 CC_PalMemSetZero(UserPubKey_ptr, sizeof(CCRsaUserPubKey_t)); in build_cc_pubkey()
1609 CCRsaUserPubKey_t * UserPubKey_ptr = NULL; in mbedtls_rsa_public() local
1631 UserPubKey_ptr = (CCRsaUserPubKey_t *)mbedtls_calloc(1, sizeof(CCRsaUserPubKey_t)); in mbedtls_rsa_public()
1632 if (UserPubKey_ptr == NULL) { in mbedtls_rsa_public()
1643 Error = build_cc_pubkey(ctx, UserPubKey_ptr); in mbedtls_rsa_public()
1648 …Error = CC_RsaPrimEncrypt(UserPubKey_ptr, PrimeData_ptr, (unsigned char *)input, ctx->MBEDTLS_PRIV… in mbedtls_rsa_public()
1654 mbedtls_zeroize_internal(UserPubKey_ptr, sizeof(CCRsaUserPubKey_t)); in mbedtls_rsa_public()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_internal_rsa_util.c73 CCRsaUserPubKey_t *UserPubKey_ptr) in cc3xx_rsa_psa_pub_to_cc_pub() argument
125 cc_err = CC_RsaPubKeyBuild(UserPubKey_ptr, e_ptr, e_len, n_ptr, n_len); in cc3xx_rsa_psa_pub_to_cc_pub()
133 CCRsaUserPubKey_t *UserPubKey_ptr) in cc3xx_rsa_psa_priv_to_cc_pub() argument
193 cc_err = CC_RsaPubKeyBuild(UserPubKey_ptr, e_ptr, e_len, n_ptr, n_len); in cc3xx_rsa_psa_priv_to_cc_pub()