Home
last modified time | relevance | path

Searched refs:cOutSize (Results 1 – 3 of 3) sorted by relevance

/external/tpm2/
DCpriRSA.c930 UINT32 *cOutSize, // OUT: the size of the encrypted data in _cpri__EncryptRSA() argument
941 pAssert(cOutSize != NULL); in _cpri__EncryptRSA()
943 if(*cOutSize < key->publicKey->size) in _cpri__EncryptRSA()
945 *cOutSize = key->publicKey->size; in _cpri__EncryptRSA()
952 for(; dInSize > *cOutSize; dInSize--) in _cpri__EncryptRSA()
958 if(dInSize < *cOutSize) in _cpri__EncryptRSA()
959 memset(cOut, 0, *cOutSize - dInSize); in _cpri__EncryptRSA()
961 memcpy(&cOut[*cOutSize-dInSize], dIn, dInSize); in _cpri__EncryptRSA()
967 retVal = RSAES_PKSC1v1_5Encode(*cOutSize, cOut, dInSize, dIn); in _cpri__EncryptRSA()
970 retVal = OaepEncode(*cOutSize, cOut, hashAlg, label, dInSize, dIn in _cpri__EncryptRSA()
[all …]
DCpriRSA_fp.h22 _cpri__EncryptRSA(UINT32 *cOutSize, // OUT: the size of the encrypted data
DCryptUtil.c1079 UINT32 cOutSize; // Conversion variable in CryptEncryptRSA() local
1095 cOutSize = *cipherOutSize; in CryptEncryptRSA()
1107 retVal = _cpri__EncryptRSA(&cOutSize,cipherOut, &key, scheme->scheme, in CryptEncryptRSA()
1109 pAssert (cOutSize <= UINT16_MAX); in CryptEncryptRSA()
1110 *cipherOutSize = (UINT16)cOutSize; in CryptEncryptRSA()