Home
last modified time | relevance | path

Searched refs:cipherText (Results 1 – 23 of 23) sorted by relevance

/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DObliviousHttpGateway.java114 byte[] cipherText = in decrypt()
138 cipherText); in decrypt()
265 byte[] cipherText = in encrypt()
273 return concatByteArrays(responseNonce, cipherText); in encrypt()
293 private static int getKeyId(byte[] cipherText) { in getKeyId() argument
294 return cipherText[0]; in getKeyId()
297 private static KemAlgorithmSpec getKem(byte[] cipherText) in getKem() argument
299 int kemId = ((cipherText[1] & 0xff) << 8) | (cipherText[2] & 0xff); in getKem()
303 private static KdfAlgorithmSpec getKdf(byte[] cipherText) in getKdf() argument
305 int kdfId = ((cipherText[3] & 0xff) << 8) | (cipherText[4] & 0xff); in getKdf()
[all …]
DObliviousHttpRequest.java33 abstract byte[] cipherText(); in cipherText() method in ObliviousHttpRequest
40 byte[] plainText, byte[] cipherText, ObliviousHttpRequestContext requestContext) { in create() argument
41 return new AutoValue_ObliviousHttpRequest(plainText, cipherText, requestContext); in create()
51 return Arrays.copyOf(cipherText(), cipherText().length); in getCipherText()
67 outputStream.write(cipherText()); in serialize()
DHpkeEncryptResponse.java31 EncapsulatedSharedSecret encapsulatedSharedSecret, @Nullable byte[] cipherText) { in create() argument
32 return new AutoValue_HpkeEncryptResponse(encapsulatedSharedSecret, cipherText); in create()
49 abstract byte[] cipherText(); in cipherText() method in HpkeEncryptResponse
DOhttpJniWrapper.java169 byte[] cipherText = hpkeCtxSeal(hpkeContextNativeRef, plainText, aad); in hpkeEncrypt()
171 return HpkeEncryptResponse.create(encapsulatedSharedSecret, cipherText); in hpkeEncrypt()
184 byte[] cipherText) { in gatewayDecrypt() argument
192 cipherText); in gatewayDecrypt()
DObliviousHttpClient.java115 return ObliviousHttpRequest.create(plainText, encryptResponse.cipherText(), requestContext); in createObliviousHttpRequest()
159 byte[] cipherText = extractCipherText(encryptedResponse); in decryptObliviousHttpResponse()
165 cipherText); in decryptObliviousHttpResponse()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DHpkeEncrypterTest.java64 byte[] cipherText = in testEncryption_success()
68 assertThat(cipherText).isNotEmpty(); in testEncryption_success()
71 byte[] decryptedText = HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in testEncryption_success()
90 byte[] cipherText = in testEncryption_invalidKeyLength_returnsEmpty()
97 assertThat(cipherText).isNull(); in testEncryption_invalidKeyLength_returnsEmpty()
DEncryptionManagerTest.java155 byte[] cipherText = in testEncryption_success()
159 byte[] decryptedText = HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in testEncryption_success()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacketUtils.java613 final ByteBuffer cipherText = ByteBuffer.allocate(mIv.length + encrypted.length); in getCipherText() local
614 cipherText.put(mIv); in getCipherText()
615 cipherText.put(encrypted); in getCipherText()
617 return getByteArrayFromBuffer(cipherText); in getCipherText()
657 final ByteBuffer cipherText = in getCipherText() local
659 cipherText.put(mIv); in getCipherText()
660 cipherText.put(encryptedTextAndIcv); in getCipherText()
662 return getByteArrayFromBuffer(cipherText); in getCipherText()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/
DOhttpJniWrapperTest.java156 BaseEncoding.base16().lowerCase().encode(response.cipherText())); in hpkeEncrypt_returnsCorrectResponse()
194 BaseEncoding.base16().lowerCase().encode(response.cipherText())); in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange()
227 Assert.assertNull(response.cipherText()); in hpkeEncrypt_emptyPlainText_returnsNullCipherText()
261 Assert.assertNull(response.cipherText()); in hpkeEncrypt_emptyPlainText_returnsNullCipherText_withServerAuctionMediaTypeChange()
490 byte[] cipherText = in aeadSeal_returnsCorrectResponse()
499 BaseEncoding.base16().lowerCase().encode(cipherText)); in aeadSeal_returnsCorrectResponse()
509 byte[] cipherText = in aeadOpen_returnsCorrectResponse()
519 cipherText); in aeadOpen_returnsCorrectResponse()
737 evpCtxRecipient, kem, kdf, aead, response.cipherText()); in gatewayDecrypt_returnsCorrectResponse()
785 evpCtxRecipient, kem, kdf, aead, response.cipherText()); in gatewayDecrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange()
DObliviousHttpClientTest.java231 String cipherText = in decryptObliviousHttpResponse_withAuctionResult() local
242 BaseEncoding.base16().lowerCase().decode(cipherText), in decryptObliviousHttpResponse_withAuctionResult()
275 String cipherText = in decryptObliviousHttpResponse_withAuctionResult_withServerAuctionMediaTypeChange() local
287 BaseEncoding.base16().lowerCase().decode(cipherText), in decryptObliviousHttpResponse_withAuctionResult_withServerAuctionMediaTypeChange()
DObliviousHttpRequestTest.java65 String cipherText = "not actual cipher"; in serialize_serializesCorrectly() local
66 byte[] cipherTextBytes = cipherText.getBytes(StandardCharsets.US_ASCII); in serialize_serializesCorrectly()
/packages/modules/AdServices/adservices/framework/java/android/adservices/cobalt/
DEncryptedCobaltEnvelopeParams.java69 @Environment int environment, @NonNull int keyIndex, @NonNull byte[] cipherText) { in EncryptedCobaltEnvelopeParams() argument
72 mCipherText = Objects.requireNonNull(cipherText); in EncryptedCobaltEnvelopeParams()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DEncryptionManager.java209 byte[] cipherText = new byte[cipherTextLength]; in buildEncryptedTopic()
219 cipherText, in buildEncryptedTopic()
223 return Optional.of(EncryptedTopic.create(cipherText, publicKey, encapsulatedKey)); in buildEncryptedTopic()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DPacketUtils.java405 ByteBuffer cipherText = ByteBuffer.allocate(AES_CBC_IV_LEN + encrypted.length); in getCiphertext() local
406 cipherText.put(iv); in getCiphertext()
407 cipherText.put(encrypted); in getCiphertext()
409 return getByteArrayFromBuffer(cipherText); in getCiphertext()
/packages/modules/AdServices/adservices/samples/topics/sampleapp6/java/com/example/adservices/samples/topics/sampleapp6/
DMainActivity.java185 byte[] cipherText = in getDecryptedTopics()
190 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
/packages/modules/AdServices/adservices/samples/topics/sampleappwithnoperm/java/com/example/adservices/samples/topics/sampleappwithnoperm/
DMainActivity.java187 byte[] cipherText = in getDecryptedTopics()
192 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
/packages/modules/AdServices/adservices/samples/topics/sampleapp3/java/com/example/adservices/samples/topics/sampleapp3/
DMainActivity.java188 byte[] cipherText = in getDecryptedTopics()
193 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
/packages/modules/AdServices/adservices/samples/topics/sampleapp2/java/com/example/adservices/samples/topics/sampleapp2/
DMainActivity.java188 byte[] cipherText = in getDecryptedTopics()
193 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
/packages/modules/AdServices/adservices/samples/topics/sampleappwithoptoutall/java/com/example/adservices/samples/topics/sampleappwithoptoutall/
DMainActivity.java187 byte[] cipherText = in getDecryptedTopics()
192 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
/packages/modules/AdServices/adservices/samples/topics/sampleapp5/java/com/example/adservices/samples/topics/sampleapp5/
DMainActivity.java186 byte[] cipherText = in getDecryptedTopics()
191 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
/packages/modules/AdServices/adservices/samples/topics/sampleapp4/java/com/example/adservices/samples/topics/sampleapp4/
DMainActivity.java188 byte[] cipherText = in getDecryptedTopics()
193 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
/packages/modules/AdServices/adservices/samples/topics/sampleapp1/java/com/example/adservices/samples/topics/sampleapp1/
DMainActivity.java126 byte[] cipherText = in getDecryptedTopics()
131 HpkeJni.decrypt(DECODED_PRIVATE_KEY, cipherText, EMPTY_CONTEXT_INFO); in getDecryptedTopics()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAuctionServerE2ETest.java1900 String cipherText = in testPersistAdSelectionResult_withDecrypt_validRequest_successEmptyUri() local
1914 byte[] responseBytes = BaseEncoding.base64().decode(cipherText); in testPersistAdSelectionResult_withDecrypt_validRequest_successEmptyUri()