Home
last modified time | relevance | path

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

/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/utils/src/common/
Dcommon_util_files.c27 int32_t actualFileLen=0; in CC_CommonUtilCopyDataFromRawTextFile() local
51 actualFileLen = ftell(fd); in CC_CommonUtilCopyDataFromRawTextFile()
52 if (actualFileLen == -1) { in CC_CommonUtilCopyDataFromRawTextFile()
60 maxBytesToRead = (actualFileLen > (*outBuffLen))?(*outBuffLen):actualFileLen; in CC_CommonUtilCopyDataFromRawTextFile()
103 int32_t actualFileLen=0; in CC_CommonUtilCopyDataFromTextFile() local
130 actualFileLen = ftell(fd); in CC_CommonUtilCopyDataFromTextFile()
131 if (actualFileLen == -1) { in CC_CommonUtilCopyDataFromTextFile()
139 maxBytesToRead = (actualFileLen > (*outBuffLen*5))?(*outBuffLen*5):actualFileLen; in CC_CommonUtilCopyDataFromTextFile()
223 size_t actualFileLen = 0; in CC_CommonUtilCopyDataFromBinFile() local
240 actualFileLen=ftell(fd); in CC_CommonUtilCopyDataFromBinFile()
[all …]
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/cert_lib/
Dmain.c116 int actualFileLen = 0; in SBU_AES_CTR_EncryptFile() local
150 actualFileLen=ftell(fd); in SBU_AES_CTR_EncryptFile()
151 if (actualFileLen == -1){ in SBU_AES_CTR_EncryptFile()
157 if ((0 == actualFileLen) || in SBU_AES_CTR_EncryptFile()
158 (actualFileLen % 0x4)) { in SBU_AES_CTR_EncryptFile()
199 while(totalRead < actualFileLen) { in SBU_AES_CTR_EncryptFile()
221 if (totalRead >= actualFileLen) { in SBU_AES_CTR_EncryptFile()
251 if (totalRead >= actualFileLen) { in SBU_AES_CTR_EncryptFile()
266 *imageSize = actualFileLen; in SBU_AES_CTR_EncryptFile()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/x509cert_lib/
Dmain.c279 int actualFileLen = 0; in SBU_AES_CTR_EncryptFile() local
313 actualFileLen=ftell(fd); in SBU_AES_CTR_EncryptFile()
314 if (actualFileLen == -1){ in SBU_AES_CTR_EncryptFile()
320 if ((0 == actualFileLen) || in SBU_AES_CTR_EncryptFile()
321 (actualFileLen % 0x4)) { in SBU_AES_CTR_EncryptFile()
362 while(totalRead < actualFileLen) { in SBU_AES_CTR_EncryptFile()
385 if (totalRead >= actualFileLen) { in SBU_AES_CTR_EncryptFile()
415 if (totalRead >= actualFileLen) { in SBU_AES_CTR_EncryptFile()
430 *imageSize = actualFileLen; in SBU_AES_CTR_EncryptFile()