Home
last modified time | relevance | path

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

/ohos5.0/base/security/huks/frameworks/crypto_lite/cipher/src/
H A Dcipher_rsa.c223 static int32_t RsaEncryptBase64Encode(int32_t cipherTotalLen, char *cipherText, int32_t cipherTextL… in RsaEncryptBase64Encode() argument
225 if (cipherTotalLen <= 0) { in RsaEncryptBase64Encode()
229 char *tempBuf = malloc(cipherTotalLen); in RsaEncryptBase64Encode()
235 int32_t ret = memcpy_s(tempBuf, cipherTotalLen, cipherText, cipherTotalLen); in RsaEncryptBase64Encode()
244 ret = mbedtls_base64_encode(NULL, 0, &dataLen, (const unsigned char *)tempBuf, cipherTotalLen); in RsaEncryptBase64Encode()
252 (const unsigned char *)tempBuf, cipherTotalLen); in RsaEncryptBase64Encode()
275 int32_t cipherTotalLen = 0; in RsaEncryptMultipleBlock() local
295 cipherTotalLen += rsaLen; in RsaEncryptMultipleBlock()
309 cipherTotalLen += rsaLen; in RsaEncryptMultipleBlock()
311 if (RsaEncryptBase64Encode(cipherTotalLen, cipherText, cipherTextLen)) { in RsaEncryptMultipleBlock()