From c31fd7d5e0f224ff010f8fa6c000eb4d8b209696 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Wed, 30 Mar 2022 13:14:36 +0200 Subject: [PATCH] SOP: Fix mapping of encryption format --- .../src/main/java/org/pgpainless/sop/EncryptImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pgpainless-sop/src/main/java/org/pgpainless/sop/EncryptImpl.java b/pgpainless-sop/src/main/java/org/pgpainless/sop/EncryptImpl.java index 51624214..d6bd7709 100644 --- a/pgpainless-sop/src/main/java/org/pgpainless/sop/EncryptImpl.java +++ b/pgpainless-sop/src/main/java/org/pgpainless/sop/EncryptImpl.java @@ -125,10 +125,9 @@ public class EncryptImpl implements Encrypt { private static StreamEncoding encryptAsToStreamEncoding(EncryptAs encryptAs) { switch (encryptAs) { case Binary: + case MIME: return StreamEncoding.BINARY; case Text: - return StreamEncoding.TEXT; - case MIME: return StreamEncoding.UTF8; } throw new IllegalArgumentException("Invalid value encountered: " + encryptAs);