/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/subtle/prf/ |
H A D | PrfImpl.java | 39 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 D | hkdf_test.go | 35 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 D | hkdf.go | 72 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 D | hmac.go | 62 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 D | aes_cmac.go | 72 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 D | BlockCipherTestBase.java | 1308 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() 1327 … outputLength = update(buffer, inputOffsetInBuffer, input.length, buffer, outputOffsetInBuffer); in assertUpdateCopySafe() 1330 assertTrue("output length: " + outputLength, in assertUpdateCopySafe() 1331 … outputLength >= blockSize || (expectedOutput.length == 0 && outputLength == 0)); in assertUpdateCopySafe() 1332 outputEndIndexInBuffer = outputOffsetInBuffer + outputLength; in assertUpdateCopySafe() [all …]
|
/aosp_15_r20/external/tink/go/prf/ |
H A D | prf_set.go | 58 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 D | LegacyHmacTestKeyManager.java | 217 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 D | TfLiteMotionPredictor_test.cpp | 142 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 D | utfperf.cpp | 42 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 D | utfperf.cpp | 42 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 D | PrfHmacJce.java | 108 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 D | PrfAesCmac.java | 71 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 D | LocaleList.java | 232 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 D | PrfSet.java | 43 public byte[] computePrimary(byte[] input, int outputLength) throws GeneralSecurityException { in computePrimary() argument 44 return getPrfs().get(getPrimaryId()).compute(input, outputLength); in computePrimary()
|
H A D | PrfSetWrapper.java | 60 public byte[] compute(byte[] input, int outputLength) throws GeneralSecurityException { in compute() argument 62 byte[] output = prf.compute(input, outputLength); in compute()
|
H A D | Prf.java | 53 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 D | TestingServicesTest.java | 946 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 D | normconf.cpp | 599 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 D | convtest.cpp | 686 int32_t outputLength; in TestDefaultIgnorableCallback() local 692 outputLength= 0; in TestDefaultIgnorableCallback() 696 …outputLength = 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() 714 …outputLength = 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 D | normconf.cpp | 599 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 D | convtest.cpp | 713 int32_t outputLength; in TestDefaultIgnorableCallback() local 719 outputLength= 0; in TestDefaultIgnorableCallback() 723 …outputLength = 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() 741 …outputLength = 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/ |
D | edit_distance.h | 68 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 D | HkdfHpkeKdfTest.java | 191 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 D | services_test.go | 1250 …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)
|