Home
last modified time | relevance | path

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

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
DPaddedBufferedBlockCipher.java150 int resultLen = 0; in processByte() local
154 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
160 return resultLen; in processByte()
199 int resultLen = 0; in processBytes() local
206 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
214 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes()
225 return resultLen; in processBytes()
248 int resultLen = 0; in doFinal() local
261 resultLen = cipher.processBlock(buf, 0, out, outOff); in doFinal()
267 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in doFinal()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
DBufferedBlockCipher.java166 int resultLen = 0; in processByte() local
172 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
176 return resultLen; in processByte()
215 int resultLen = 0; in processBytes() local
222 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
230 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes()
243 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes()
247 return resultLen; in processBytes()
271 int resultLen = 0; in doFinal() local
286 resultLen = bufOff; in doFinal()
[all …]
/external/icu/icu4c/source/io/
Dsprintf.c53 int32_t resultLen) in u_sprintf_pad_and_justify() argument
57 int32_t lengthOfResult = resultLen; in u_sprintf_pad_and_justify()
59 resultLen = ufmt_min(resultLen, output->available); in u_sprintf_pad_and_justify()
62 if(info->fWidth != -1 && resultLen < info->fWidth) { in u_sprintf_pad_and_justify()
63 int32_t paddingLeft = info->fWidth - resultLen; in u_sprintf_pad_and_justify()
66 if (paddingLeft + resultLen > output->available) { in u_sprintf_pad_and_justify()
67 paddingLeft = output->available - resultLen; in u_sprintf_pad_and_justify()
77 written += u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify()
78 u_memset(&output->str[outputPos + resultLen], info->fPadChar, paddingLeft); in u_sprintf_pad_and_justify()
85 written += u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify()
[all …]
Duprintf.cpp79 int32_t resultLen) in u_printf_pad_and_justify() argument
85 if(info->fWidth != -1 && resultLen < info->fWidth) { in u_printf_pad_and_justify()
88 written = u_file_write(result, resultLen, output); in u_printf_pad_and_justify()
89 for(i = 0; i < info->fWidth - resultLen; ++i) { in u_printf_pad_and_justify()
96 for(i = 0; i < info->fWidth - resultLen; ++i) { in u_printf_pad_and_justify()
99 written += u_file_write(result, resultLen, output); in u_printf_pad_and_justify()
104 written = u_file_write(result, resultLen, output); in u_printf_pad_and_justify()
Duprntf_p.c284 int32_t resultLen; in u_printf_double_handler() local
325 resultLen = unum_formatDouble(format, num, result, UPRINTF_BUFFER_SIZE, 0, &status); in u_printf_double_handler()
328 resultLen = 0; in u_printf_double_handler()
342 return handler->pad_and_justify(context, info, result, resultLen); in u_printf_double_handler()
359 int32_t resultLen; in u_printf_integer_handler() local
392 resultLen = unum_formatInt64(format, num, result, UPRINTF_BUFFER_SIZE, 0, &status); in u_printf_integer_handler()
395 resultLen = 0; in u_printf_integer_handler()
409 return handler->pad_and_justify(context, info, result, resultLen); in u_printf_integer_handler()
492 int32_t resultLen; in u_printf_uinteger_handler() local
520 resultLen = unum_formatInt64(format, num, result, UPRINTF_BUFFER_SIZE, 0, &status); in u_printf_uinteger_handler()
[all …]
Duprintf.h62 int32_t resultLen);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
DCTSBlockCipher.java91 int resultLen = 0; in processByte() local
95 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
103 return resultLen; in processByte()
142 int resultLen = 0; in processBytes() local
149 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
160 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes()
172 return resultLen; in processBytes()
DGCMBlockCipher.java319 int resultLen = 0; in processBytes() local
326 outputBlock(out, outOff + resultLen); in processBytes()
327 resultLen += BLOCK_SIZE; in processBytes()
331 return resultLen; in processBytes()
446 int resultLen = extra; in doFinal() local
456 resultLen += macSize; in doFinal()
471 return resultLen; in doFinal()
/external/icu/icu4c/source/tools/toolutil/
Dtoolutil.cpp129 int32_t resultLen = 0; in findDirname() local
141 resultLen = 0; in findDirname()
144 resultLen = basename - path; in findDirname()
145 if(resultLen<1) { in findDirname()
146 resultLen = 1; /* '/' or '/a' -> '/' */ in findDirname()
150 if((resultLen+1) <= bufLen) { in findDirname()
151 uprv_strncpy(buffer, resultPtr, resultLen); in findDirname()
152 buffer[resultLen]=0; in findDirname()
/external/icu/icu4c/source/test/cintltst/
Dcrestst.c113 int32_t resultLen; in TestAliasConflict() local
121 result = ures_getStringByKey(he, "ExemplarCharacters", &resultLen, &status); in TestAliasConflict()
154 int32_t resultLen; in TestConstruction1() local
185 result1= ures_getStringByKey(test1, "string_in_Root_te_te_IN", &resultLen, &err); in TestConstruction1()
186 result2= ures_getStringByKey(test2, "string_in_Root_te_te_IN", &resultLen, &err); in TestConstruction1()
257 int32_t resultLen; in testTag() local
368 ures_getStringByKey(theBundle, tag, &resultLen, &status); in testTag()
372 string=ures_getStringByKey(theBundle, tag, &resultLen, &status); in testTag()
422 int32_t resultLen; in TestFallback() local
436 junk = ures_getStringByKey(fr_FR, "LocaleID", &resultLen, &status); in TestFallback()
[all …]
Dcloctst.c598 int32_t resultLen = 0; in UCharsToEscapedAscii() local
608 for(i=0;i<limit && resultLen<buflen;++i) { in UCharsToEscapedAscii()
617 if(resultLen>escapeLimit1) { in UCharsToEscapedAscii()
620 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
621 resultChars[resultLen++]=ESCAPE_MAP[j].escapedChar; in UCharsToEscapedAscii()
625 u_austrncpy(resultChars + resultLen, &uc, 1); in UCharsToEscapedAscii()
626 resultLen++; in UCharsToEscapedAscii()
630 if(resultLen>escapeLimit2) { in UCharsToEscapedAscii()
635 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
636 resultChars[resultLen++]='u'; in UCharsToEscapedAscii()
[all …]
Dcreststn.c339 int32_t resultLen; in TestAliasConflict() local
350 result = ures_getStringByKey(he, "ExemplarCharacters", &resultLen, &status); in TestAliasConflict()
1153 int32_t resultLen; in TestErrorConditions() local
1223 …if(ures_getStringByKey(NULL, "string_only_in_te", &resultLen, &status) != NULL && status != U_ILLE… in TestErrorConditions()
2074 int32_t resultLen; in TestFallback() local
2088 junk = tres_getString(fr_FR, -1, "LocaleID", &resultLen, &status); in TestFallback()
2090 junk = tres_getString(fr_FR, -1, "LocaleString", &resultLen, &status); in TestFallback()
2092 junk = tres_getString(fr_FR, -1, "LocaleID", &resultLen, &status); in TestFallback()
2108 junk = tres_getString(fr_FR, -1, "ExemplarCharacters", &resultLen, &status); in TestFallback()
2133 version = tres_getString(resLocID, -1, NULL, &resultLen, &err); in TestFallback()
[all …]
Dudatpg_test.c250 int32_t formattedCapacity, resultLen,patternCapacity ; in TestBuilder() local
361 resultLen=udat_format(formatter, ucal_getNow(), formatted, formattedCapacity, in TestBuilder()
366 resultLen=udat_format(formatter, sampleDate, formatted, formattedCapacity, in TestBuilder()
368 if ( u_memcmp(sampleFormatted, formatted, resultLen) != 0 ) { in TestBuilder()
Dreapits.c333 int32_t resultLen; in TestRegexCAPI() local
337 resultPat = uregex_pattern(re, &resultLen, &status); in TestRegexCAPI()
342 TEST_ASSERT(resultLen == -1); in TestRegexCAPI()
350 resultPat = uregex_pattern(re, &resultLen, &status); in TestRegexCAPI()
356 TEST_ASSERT(resultLen == 3); in TestRegexCAPI()
1501 int32_t resultLen; in TestUTextAPI() local
1510 resultPat = uregex_pattern(re, &resultLen, &status); in TestUTextAPI()
1515 TEST_ASSERT(resultLen == -1); in TestUTextAPI()
1527 resultPat = uregex_pattern(re, &resultLen, &status); in TestUTextAPI()
1532 TEST_ASSERT(resultLen == 3); in TestUTextAPI()
Dcnumtst.c2606 int32_t resultLen; in TestCurrencyUsage() local
2615 resultLen = unum_formatDouble(unumFmt, numberToBeFormat, result, LENGTH(result), in TestCurrencyUsage()
2619 if(resultLen != expectLen || u_strcmp(result, expect) != 0) { in TestCurrencyUsage()
2621 aescstrdup(expect, expectLen), aescstrdup(result, resultLen)); in TestCurrencyUsage()
/external/icu/icu4c/source/i18n/
Ducal.cpp781 int32_t resultLen = 0; in ucal_getWindowsTimeZoneID() local
786 resultLen = resultWinID.length(); in ucal_getWindowsTimeZoneID()
790 return resultLen; in ucal_getWindowsTimeZoneID()
799 int32_t resultLen = 0; in ucal_getTimeZoneIDForWindowsID() local
804 resultLen = resultID.length(); in ucal_getTimeZoneIDForWindowsID()
808 return resultLen; in ucal_getTimeZoneIDForWindowsID()
Dtimezone.cpp1137 int32_t resultLen = 0; in getRegion() local
1153 resultLen = u_strlen(uregion); in getRegion()
1155 u_UCharsToChars(uregion, region, uprv_min(resultLen, capacity)); in getRegion()
1157 if (capacity < resultLen) { in getRegion()
1159 return resultLen; in getRegion()
1162 return u_terminateChars(region, capacity, resultLen, &status); in getRegion()
/external/icu/icu4c/source/test/intltest/
Dloctest.cpp1703 int32_t resultLen = 0; in TestKeywordVariantParsing() local
1709 resultLen = l.getKeywordValue(testCases[i].keyword, buffer, 256, status); in TestKeywordVariantParsing()
1710 (void)resultLen; // Suppress unused variable warning. in TestKeywordVariantParsing()
1732 int32_t resultLen = 0; in TestSetKeywordValue() local
1744 resultLen = l.getKeywordValue(testCases[i].keyword, buffer, 256, status); in TestSetKeywordValue()
1745 (void)resultLen; // Suppress unused variable warning. in TestSetKeywordValue()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DLongArray.java621 int resultLen = Math.max(1, getUsedLength()); in addOne() local
622 long[] ints = resizedInts(resultLen); in addOne()