我使用命令构建了我的GPG密钥
gpg --full-generate-key
我有一个使用公钥加密文件并使用我的密钥解密的客户端。但是,在解密过程中出现以下错误:
org.mule.module.pgp.AbstractTransformPolicy ID: Message: input is not PGPLiteralData - type unknown.
org.bouncycastle.openpgp.PGPException: input is not PGPLiteralData - type unknown.
at co.my package.MyDecryptStreamTransformer.initialize(MyDecryptStreamTransformer.java:118) ~[classes/:?]
at org.mule.module.pgp.TransformContinuouslyPolicy$ContinuousWork.execute(TransformContinuouslyPolicy.java:60) ~[mule-module-pgp-3.6.2.jar:3.6.2]
at org.mule.module.pgp.AbstractTransformPolicy$TransformerWork.run(AbstractTransformPolicy.java:109) ~[mule-module-pgp-3.6.2.jar:3.6.2]
test - ERROR 2018-11-27 13:31:50,258 [Thread-2] co.mypackage.DecryptIntegTest ID: Message: Exception occurred
java.io.IOException: Write end dead
at java.io.PipedInputStream.read(PipedInputStream.java:311) ~[?:1.7.0_80]
at org.mule.module.pgp.LazyTransformedInputStream.read(LazyTransformedInputStream.java:82)
我确实看到了IOException: Write end dead.
,但似乎是第一个错误导致它冒泡IOException。