/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpGateway.java | 114 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 …]
|
D | ObliviousHttpRequest.java | 33 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()
|
D | HpkeEncryptResponse.java | 31 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
|
D | OhttpJniWrapper.java | 169 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()
|
D | ObliviousHttpClient.java | 115 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/ |
D | HpkeEncrypterTest.java | 64 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()
|
D | EncryptionManagerTest.java | 155 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/ |
D | PacketUtils.java | 613 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/ |
D | OhttpJniWrapperTest.java | 156 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()
|
D | ObliviousHttpClientTest.java | 231 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()
|
D | ObliviousHttpRequestTest.java | 65 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/ |
D | EncryptedCobaltEnvelopeParams.java | 69 @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/ |
D | EncryptionManager.java | 209 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/ |
D | PacketUtils.java | 405 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/ |
D | MainActivity.java | 185 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/ |
D | MainActivity.java | 187 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/ |
D | MainActivity.java | 188 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/ |
D | MainActivity.java | 188 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/ |
D | MainActivity.java | 187 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/ |
D | MainActivity.java | 186 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/ |
D | MainActivity.java | 188 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/ |
D | MainActivity.java | 126 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/ |
D | AuctionServerE2ETest.java | 1900 String cipherText = in testPersistAdSelectionResult_withDecrypt_validRequest_successEmptyUri() local 1914 byte[] responseBytes = BaseEncoding.base64().decode(cipherText); in testPersistAdSelectionResult_withDecrypt_validRequest_successEmptyUri()
|