Searched refs:encryptEnvelope (Results 1 – 6 of 6) sorted by relevance
89 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()
44 public void encryptEnvelope() throws Exception { in encryptEnvelope() method in NoOpEncrypterTest49 Optional<EncryptedMessage> encryptionResult = mNoOpEncrypter.encryptEnvelope(envelope); in encryptEnvelope()83 Optional<EncryptedMessage> encryptionResult = mNoOpEncrypter.encryptEnvelope(emptyEnvelope); in encryptEmptyEnvelope()
35 Optional<EncryptedMessage> encryptEnvelope(@NonNull Envelope envelope) in encryptEnvelope() method
103 public Optional<EncryptedMessage> encryptEnvelope(@NonNull Envelope envelope) in encryptEnvelope() method in HpkeEncrypter
37 public Optional<EncryptedMessage> encryptEnvelope(@NonNull Envelope envelope) in encryptEnvelope() method in NoOpEncrypter
268 mEncrypter.encryptEnvelope(buildEnvelope(observationBatches)); in uploadAndRemoveObservationBatches()