Home
last modified time | relevance | path

Searched refs:outputLength (Results 1 – 25 of 139) sorted by relevance

123456

/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/subtle/prf/
H A DPrfImpl.java39 private static byte[] readBytesFromStream(InputStream stream, int outputLength) in readBytesFromStream() argument
42 byte[] output = new byte[outputLength]; in readBytesFromStream()
44 while (offset < outputLength) { in readBytesFromStream()
45 int bytesRead = stream.read(output, offset, outputLength - offset); in readBytesFromStream()
59 public byte[] compute(byte[] input, int outputLength) throws GeneralSecurityException { in compute() argument
63 if (outputLength <= 0) { in compute()
67 return readBytesFromStream(prfStream, outputLength); in compute()
/aosp_15_r20/external/tink/go/prf/subtle/
H A Dhkdf_test.go35 outputLength uint32 member
47 outputLength: 42,
55 outputLength: 82,
63 outputLength: 42,
71 outputLength: 42,
79 outputLength: 82,
87 outputLength: 42,
95 outputLength: 42,
116 output, err := p.ComputePRF(info, v.outputLength)
H A Dhkdf.go72 func (h HKDFPRF) ComputePRF(data []byte, outputLength uint32) ([]byte, error) {
74 output := make([]byte, outputLength)
75 _, err := io.ReadAtLeast(kdf, output, int(outputLength))
79 return output[:outputLength], nil
H A Dhmac.go62 func (h HMACPRF) ComputePRF(data []byte, outputLength uint32) ([]byte, error) {
64 if outputLength > uint32(mac.Size()) {
68 return mac.Sum(nil)[:outputLength], nil
H A Daes_cmac.go72 func (a AESCMACPRF) ComputePRF(data []byte, outputLength uint32) ([]byte, error) {
75 if outputLength > uint32(bs) {
117 return output[:outputLength], nil
/aosp_15_r20/cts/tests/tests/keystore/src/android/keystore/cts/
H A DBlockCipherTestBase.java1308 int outputLength = update(buffer, inputOffsetInBuffer, input.length, in assertUpdateCopySafe() local
1312 assertTrue("output length: " + outputLength, in assertUpdateCopySafe()
1313 outputLength >= blockSize || (expectedOutput.length == 0 && outputLength == 0)); in assertUpdateCopySafe()
1314 outputEndIndexInBuffer = outputOffsetInBuffer + outputLength; in assertUpdateCopySafe()
1316 assertEquals(expectedOutput.length, outputLength); in assertUpdateCopySafe()
1318 assertArrayEquals(subarray(expectedOutput, 0, outputLength), in assertUpdateCopySafe()
1327outputLength = update(buffer, inputOffsetInBuffer, input.length, buffer, outputOffsetInBuffer); in assertUpdateCopySafe()
1330 assertTrue("output length: " + outputLength, in assertUpdateCopySafe()
1331outputLength >= blockSize || (expectedOutput.length == 0 && outputLength == 0)); in assertUpdateCopySafe()
1332 outputEndIndexInBuffer = outputOffsetInBuffer + outputLength; in assertUpdateCopySafe()
[all …]
/aosp_15_r20/external/tink/go/prf/
H A Dprf_set.go58 ComputePRF(input []byte, outputLength uint32) ([]byte, error)
69 func (w *monitoredPRF) ComputePRF(input []byte, outputLength uint32) ([]byte, error) {
70 p, err := w.prf.ComputePRF(input, outputLength)
91 func (s Set) ComputePrimaryPRF(input []byte, outputLength uint32) ([]byte, error) {
96 return prf.ComputePRF(input, outputLength)
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/mac/internal/
H A DLegacyHmacTestKeyManager.java217 private final int outputLength; field in LegacyHmacTestKeyManager.LegacyMacTestImpl
219 LegacyMacTestImpl(PrfHmacJce prfHmac, int outputLength) { in LegacyMacTestImpl() argument
221 this.outputLength = outputLength; in LegacyMacTestImpl()
226 return prfHmac.compute(data, outputLength); in computeMac()
/aosp_15_r20/frameworks/native/libs/input/tests/
H A DTfLiteMotionPredictor_test.cpp142 const size_t outputLength = model->outputLength(); in TEST() local
143 ASSERT_EQ(outputLength, static_cast<size_t>(model->outputR().size())); in TEST()
144 ASSERT_EQ(outputLength, static_cast<size_t>(model->outputPhi().size())); in TEST()
145 ASSERT_EQ(outputLength, static_cast<size_t>(model->outputPressure().size())); in TEST()
/aosp_15_r20/external/cronet/third_party/icu/source/test/perf/utfperf/
H A Dutfperf.cpp42 static int32_t utf8Length, encodedLength, outputLength, countInputCodePoints; variable
185 encodedLength=outputLength=0; in call()
212 outputLength=pOut-output; in call()
213 if(inputLength!=outputLength) { in call()
214 …f(stderr, "error: roundtrip failed, inputLength %d!=outputLength %d\n", inputLength, outputLength); in call()
/aosp_15_r20/external/icu/icu4c/source/test/perf/utfperf/
H A Dutfperf.cpp42 static int32_t utf8Length, encodedLength, outputLength, countInputCodePoints; variable
185 encodedLength=outputLength=0; in call()
212 outputLength=pOut-output; in call()
213 if(inputLength!=outputLength) { in call()
214 …f(stderr, "error: roundtrip failed, inputLength %d!=outputLength %d\n", inputLength, outputLength); in call()
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/subtle/
H A DPrfHmacJce.java108 public byte[] compute(byte[] data, int outputLength) throws GeneralSecurityException { in compute() argument
109 if (outputLength > maxOutputLength) { in compute()
114 return Arrays.copyOf(localMac.get().doFinal(), outputLength); in compute()
H A DPrfAesCmac.java71 public byte[] compute(final byte[] data, int outputLength) throws GeneralSecurityException { in compute() argument
72 if (outputLength > AesUtil.BLOCK_SIZE) { in compute()
111 return Arrays.copyOf(aes.doFinal(y), outputLength); in compute()
/aosp_15_r20/frameworks/base/core/java/android/os/
H A DLocaleList.java232 final int outputLength = inputLength + (topLocaleIndex == -1 ? 1 : 0); in LocaleList() local
233 final Locale[] localeList = new Locale[outputLength]; in LocaleList()
250 for (int i = 0; i < outputLength; i++) { in LocaleList()
252 if (i < outputLength - 1) { in LocaleList()
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/prf/
H A DPrfSet.java43 public byte[] computePrimary(byte[] input, int outputLength) throws GeneralSecurityException { in computePrimary() argument
44 return getPrfs().get(getPrimaryId()).compute(input, outputLength); in computePrimary()
H A DPrfSetWrapper.java60 public byte[] compute(byte[] input, int outputLength) throws GeneralSecurityException { in compute() argument
62 byte[] output = prf.compute(input, outputLength); in compute()
H A DPrf.java53 byte[] compute(byte[] input, int outputLength) throws GeneralSecurityException; in compute() argument
/aosp_15_r20/external/tink/testing/java_src/javatests/com/google/crypto/tink/testing/
H A DTestingServicesTest.java946 int outputLength) { in computePrf() argument
955 .setOutputLength(outputLength) in computePrf()
965 int outputLength = 15; in computePrf_success() local
976 prfSetStub, keyset, primaryKeyId, inputData, outputLength); in computePrf_success()
978 assertThat(computeResponse.getOutput().size()).isEqualTo(outputLength); in computePrf_success()
994 int outputLength = 15; in computePrf_failsOnUnknownKeyId() local
1002 prfSetStub, keyset, badKeyId, inputData, outputLength); in computePrf_failsOnUnknownKeyId()
1011 int outputLength = 12345; in computePrf_failsOnBadOutputLength() local
1022 prfSetStub, keyset, primaryKeyId, inputData, outputLength); in computePrf_failsOnBadOutputLength()
/aosp_15_r20/external/cronet/third_party/icu/source/test/intltest/
H A Dnormconf.cpp599 UnicodeString output[], int32_t outputLength) { in hexsplit() argument
604 for (i=0; i<outputLength; ++i) { in hexsplit()
637 if((i + 1) == outputLength) { in hexsplit()
640 …ln(UnicodeString("Missing field(s) in ", "") + s + " only " + (i + 1) + " out of " + outputLength); in hexsplit()
H A Dconvtest.cpp686 int32_t outputLength; in TestDefaultIgnorableCallback() local
692 outputLength= 0; in TestDefaultIgnorableCallback()
696outputLength = ucnv_fromUChars(cnv.getAlias(), output, 10, UnicodeString::fromUTF32(input, 1).getT… in TestDefaultIgnorableCallback()
697 if (U_FAILURE(status) || outputLength != 0) { in TestDefaultIgnorableCallback()
706 outputLength= 0; in TestDefaultIgnorableCallback()
714outputLength = ucnv_fromUChars(cnv.getAlias(), output, 10, UnicodeString::fromUTF32(input, 1).getT… in TestDefaultIgnorableCallback()
715 if (U_FAILURE(status) || outputLength <= 0) { in TestDefaultIgnorableCallback()
/aosp_15_r20/external/icu/icu4c/source/test/intltest/
H A Dnormconf.cpp599 UnicodeString output[], int32_t outputLength) { in hexsplit() argument
604 for (i=0; i<outputLength; ++i) { in hexsplit()
637 if((i + 1) == outputLength) { in hexsplit()
640 …ln(UnicodeString("Missing field(s) in ", "") + s + " only " + (i + 1) + " out of " + outputLength); in hexsplit()
H A Dconvtest.cpp713 int32_t outputLength; in TestDefaultIgnorableCallback() local
719 outputLength= 0; in TestDefaultIgnorableCallback()
723outputLength = ucnv_fromUChars(cnv.getAlias(), output, 10, UnicodeString::fromUTF32(input, 1).getT… in TestDefaultIgnorableCallback()
724 if (U_FAILURE(status) || outputLength != 0) { in TestDefaultIgnorableCallback()
733 outputLength= 0; in TestDefaultIgnorableCallback()
741outputLength = ucnv_fromUChars(cnv.getAlias(), output, 10, UnicodeString::fromUTF32(input, 1).getT… in TestDefaultIgnorableCallback()
742 if (U_FAILURE(status) || outputLength <= 0) { in TestDefaultIgnorableCallback()
/aosp_15_r20/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/
Dedit_distance.h68 const int editDistanceTableWidth, const int outputLength) { in dumpEditDistance10ForDebug() argument
74 if (j < editDistanceTableWidth + 1 && i < outputLength + 1) { in dumpEditDistance10ForDebug()
/aosp_15_r20/external/tink/java_src/src/test/java/com/google/crypto/tink/hybrid/internal/
H A DHkdfHpkeKdfTest.java191 int outputLength = 42; in labeledExpand_outputLongerThanDigestLength() local
196 byte[] actual = kdf.labeledExpand(prk, info, "info_label", suiteId, outputLength); in labeledExpand_outputLongerThanDigestLength()
/aosp_15_r20/external/tink/testing/go/
H A Dservices_test.go1250 …ervices.PrfSetService, keyset []byte, keyID uint32, inputData []byte, outputLength int) ([]byte, e…
1255 OutputLength: int32(outputLength),
1292 outputLength := 15
1293 output, err := prfSetCompute(ctx, prfSetService, keyset, primaryKeyID, inputData, outputLength)
1297 if len(output) != outputLength {
1298 …t.Fatalf("expected output of length %d, but got length %d (%x)", outputLength, len(output), output)

123456