Lines Matching defs:outBuf
53 void DmGenerateStrHash(const void *data, size_t dataSize, unsigned char *outBuf, uint32_t outBufLen,
56 if (data == nullptr || outBuf == nullptr || startIndex > outBufLen) {
63 SHA256_Final(&outBuf[startIndex], &ctx);
66 int32_t ConvertBytesToHexString(char *outBuf, uint32_t outBufLen, const unsigned char *inBuf,
69 if ((outBuf == nullptr) || (inBuf == nullptr) || (outBufLen < HexifyLen(inLen))) {
76 *outBuf++ = '0' + h;
78 *outBuf++ = 'a' + h - DEC_MAX_NUM;
81 *outBuf++ = '0' + l;
83 *outBuf++ = 'a' + l - DEC_MAX_NUM;
126 int32_t Crypto::ConvertHexStringToBytes(unsigned char *outBuf, uint32_t outBufLen, const char *inBuf,
130 if ((outBuf == NULL) || (inBuf == NULL) || (inLen % HEX_TO_UINT8 != 0)) {
160 *outBuf++ = (c << HEX_MAX_BIT_NUM) | c2;