{"id":2708,"date":"2025-10-22T12:33:44","date_gmt":"2025-10-22T04:33:44","guid":{"rendered":"https:\/\/thereisno.top\/?p=2708"},"modified":"2025-10-22T12:34:55","modified_gmt":"2025-10-22T04:34:55","slug":"openkeychain%e8%a7%a3%e5%86%b3%e8%a7%a3%e5%af%86openpgpv5data%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/thereisno.top\/?p=2708","title":{"rendered":"OpenKeyChain\u89e3\u51b3\u89e3\u5bc6OpenPgpV5Data\u9519\u8bef"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u9879\u76ee\u5730\u5740<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/xuenhua\/open-keychain\">\u9879\u76ee\u5730\u5740<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u9519\u8bef\u4fe1\u606f<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u64cd\u4f5c\u4e2d\u9047\u5230OpenPGP\u5f02\u5e38\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<\/blockquote>\n\n\n\n<p>\u7ecf\u8fc7\u4ee3\u7801\u6392\u67e5\u53d1\u73b0<code>CachingDataDecryptorFactory.java<\/code>\u4e2d\u7684<code>mOperatorHelper<\/code>\u548c<code>mAeadHelper<\/code>\u6ca1\u6709\u521d\u59cb\u5316\uff0c\u5bfc\u81f4\u89e3\u5bc6\u629b\u51fa<code>OpenPGP\u5f02\u5e38<\/code>\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<pre id=\"codecell0\" class=\"wp-block-preformatted\">--- a\/OpenKeychain\/src\/main\/java\/org\/bouncycastle\/openpgp\/operator\/jcajce\/CachingDataDecryptorFactory.java\n+++ b\/OpenKeychain\/src\/main\/java\/org\/bouncycastle\/openpgp\/operator\/jcajce\/CachingDataDecryptorFactory.java\n@@ -15,6 +15,7 @@ import java.util.Map;\n \n import org.bouncycastle.bcpg.AEADEncDataPacket;\n import org.bouncycastle.bcpg.SymmetricEncIntegrityPacket;\n+import org.bouncycastle.jcajce.util.DefaultJcaJceHelper;\n import org.bouncycastle.jcajce.util.NamedJcaJceHelper;\n import org.bouncycastle.openpgp.PGPException;\n import org.bouncycastle.openpgp.PGPPublicKeyEncryptedData;\n@@ -28,8 +29,8 @@ public class CachingDataDecryptorFactory implements PublicKeyDataDecryptorFactor\n     private final PublicKeyDataDecryptorFactory mWrappedDecryptor;\n     private final HashMap&lt;ByteBuffer, byte[]&gt; mSessionKeyCache;\n \n-    private OperatorHelper mOperatorHelper;\n-    private JceAEADUtil mAeadHelper;\n+    private OperatorHelper mOperatorHelper=new OperatorHelper(new DefaultJcaJceHelper());;\n+    private JceAEADUtil mAeadHelper=new JceAEADUtil(mOperatorHelper);;\n \n     public CachingDataDecryptorFactory(String providerName, Map&lt;ByteBuffer, byte[]&gt; sessionKeyCache)\n     {\n\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u53d1\u5e03\u5730\u5740<\/h2>\n\n\n\n<p>\u5b98\u65b9\u53ea\u63d0\u4f9b\u4e86\u6e90\u7801\uff0c\u4f46\u662f\u5e76\u6ca1\u6709\u63d0\u4f9bapk\uff0c\u6253\u5305\u4e86<code>6.0.4.2<\/code>\u7248\u672c\uff0c\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53bb<a href=\"https:\/\/github.com\/xuenhua\/open-keychain\/releases\">\u4e0b\u8f7d<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9879\u76ee\u5730\u5740 \u9879\u76ee\u5730\u5740 \u9519\u8bef\u4fe1\u606f \u64cd\u4f5c\u4e2d\u9047\u5230OpenPGP\u5f02\u5e38\uff01 \u89e3\u51b3\u65b9\u6cd5 \u7ecf\u8fc7\u4ee3\u7801\u6392\u67e5\u53d1\u73b0CachingData &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/thereisno.top\/?p=2708\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cOpenKeyChain\u89e3\u51b3\u89e3\u5bc6OpenPgpV5Data\u9519\u8bef\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[112],"tags":[274,273],"class_list":["post-2708","post","type-post","status-publish","format-standard","hentry","category-android","tag-gpg","tag-openkeychain"],"_links":{"self":[{"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/posts\/2708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thereisno.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2708"}],"version-history":[{"count":3,"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/posts\/2708\/revisions"}],"predecessor-version":[{"id":2711,"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/posts\/2708\/revisions\/2711"}],"wp:attachment":[{"href":"https:\/\/thereisno.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thereisno.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thereisno.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}