Home
last modified time | relevance | path

Searched refs:encryptEnvelope (Results 1 – 6 of 6) sorted by relevance

/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/crypto/
DHpkeEncrypterTest.java89 Optional<EncryptedMessage> encryptionResult = mHpkeEncrypter.encryptEnvelope(envelope); in encryptEnvelope_noOpRoundTripSuccess()
164 assertTrue(mHpkeEncrypter.encryptEnvelope(envelope).isPresent()); in encryptEnvelope_hpkeSingleTripSuccess()
193 assertThat(mHpkeEncrypter.encryptEnvelope(Envelope.newBuilder().build())) in encryptEmptyMessage_returnsEmptyOptional()
223 assertThrows(AssertionError.class, () -> mHpkeEncrypter.encryptEnvelope(envelope)); in wrongSizedKey_throwsAssertionError()
246 EncryptionFailedException.class, () -> mHpkeEncrypter.encryptEnvelope(envelope)); in encryptionFailure_throwsEncryptionFailedException()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/testing/crypto/
DNoOpEncrypterTest.java44 public void encryptEnvelope() throws Exception { in encryptEnvelope() method in NoOpEncrypterTest
49 Optional<EncryptedMessage> encryptionResult = mNoOpEncrypter.encryptEnvelope(envelope); in encryptEnvelope()
83 Optional<EncryptedMessage> encryptionResult = mNoOpEncrypter.encryptEnvelope(emptyEnvelope); in encryptEmptyEnvelope()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/crypto/
DEncrypter.java35 Optional<EncryptedMessage> encryptEnvelope(@NonNull Envelope envelope) in encryptEnvelope() method
DHpkeEncrypter.java103 public Optional<EncryptedMessage> encryptEnvelope(@NonNull Envelope envelope) in encryptEnvelope() method in HpkeEncrypter
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/testing/crypto/
DNoOpEncrypter.java37 public Optional<EncryptedMessage> encryptEnvelope(@NonNull Envelope envelope) in encryptEnvelope() method in NoOpEncrypter
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/impl/
DCobaltPeriodicJobImpl.java268 mEncrypter.encryptEnvelope(buildEnvelope(observationBatches)); in uploadAndRemoveObservationBatches()