{"action":"created","issue":{"url":"https://api.github.com/repos/krzyzanowskim/ObjectivePGP/issues/6","labels_url":"https://api.github.com/repos/krzyzanowskim/ObjectivePGP/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/krzyzanowskim/ObjectivePGP/issues/6/comments","events_url":"https://api.github.com/repos/krzyzanowskim/ObjectivePGP/issues/6/events","html_url":"https://github.com/krzyzanowskim/ObjectivePGP/issues/6","id":54536010,"number":6,"title":"Error decrypting large files","user":{"login":"jmjordan","id":210460,"avatar_url":"https://avatars.githubusercontent.com/u/210460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmjordan","html_url":"https://github.com/jmjordan","followers_url":"https://api.github.com/users/jmjordan/followers","following_url":"https://api.github.com/users/jmjordan/following{/other_user}","gists_url":"https://api.github.com/users/jmjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/jmjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmjordan/subscriptions","organizations_url":"https://api.github.com/users/jmjordan/orgs","repos_url":"https://api.github.com/users/jmjordan/repos","events_url":"https://api.github.com/users/jmjordan/events{/privacy}","received_events_url":"https://api.github.com/users/jmjordan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-16T03:25:36Z","updated_at":"2015-11-30T04:26:04Z","closed_at":null,"body":"I receive the following exception when attempting to decrypt larger files. In this case the file is 2KB and the secret key is 4096 bits. I have successfully decrypted smaller files with the same code.\r\n\r\n(\r\n\t0   CoreFoundation                      0x0000000111192f35 __exceptionPreprocess + 165\r\n\t1   libobjc.A.dylib                     0x0000000110e2bbb7 objc_exception_throw + 45\r\n\t2   CoreFoundation                      0x0000000111192e6d +[NSException raise:format:] + 205\r\n\t3   Foundation                          0x000000010ec9fac7 -[NSData(NSData) subdataWithRange:] + 252\r\n\t4   PlainText                           0x000000010ca1799d +[PGPPacketFactory packetWithData:offset:] + 305\r\n\t5   PlainText                           0x000000010ca10b00 -[ObjectivePGP readPacketsFromData:] + 127\r\n\t6   PlainText                           0x000000010ca0df3d -[ObjectivePGP decryptData:passphrase:error:] + 161\r\n\t7   PlainText                           0x000000010c91b6a7 -[<omitted>] + 951\r\n\t8   UIKit                               0x000000010fb3ef50 __40-[UIDocument openWithCompletionHandler:]_block_invoke380 + 61\r\n\t9   Foundation                          0x000000010ecd1727 -[NSFileCoordinator _invokeAccessor:thenCompletionHandler:] + 180\r\n\t10  Foundation                          0x000000010ecd1662 __73-[NSFileCoordinator coordinateReadingItemAtURL:options:error:byAccessor:]_block_invoke + 97\r\n\t11  Foundation                          0x000000010edb4cd7 __85-[NSFileCoordinator(NSPrivate) _coordinateReadingItemAtURL:options:error:byAccessor:]_block_invoke335 + 94\r\n\t12  Foundation                          0x000000010edb4a26 -[NSFileCoordinator(NSPrivate) _invokeAccessor:orDont:andRelinquishAccessClaim:] + 300\r\n\t13  Foundation                          0x000000010ecd0011 -[NSFileCoordinator(NSPrivate) _coordinateReadingItemAtURL:options:error:byAccessor:] + 634\r\n\t14  Foundation                          0x000000010eccfd8b -[NSFileCoordinator coordinateReadingItemAtURL:options:error:byAccessor:] + 80\r\n\t15  UIKit                               0x000000010fb3eaba __40-[UIDocument openWithCompletionHandler:]_block_invoke + 328\r\n\t16  libdispatch.dylib                   0x0000000112154ba6 _dispatch_call_block_and_release + 12\r\n\t17  libdispatch.dylib                   0x00000001121727f4 _dispatch_client_callout + 8\r\n\t18  libdispatch.dylib                   0x000000011215ab22 _dispatch_queue_drain + 1417\r\n\t19  libdispatch.dylib                   0x000000011215a432 _dispatch_queue_invoke + 235\r\n\t20  libdispatch.dylib                   0x000000011215cfc1 _dispatch_root_queue_drain + 685\r\n\t21  libdispatch.dylib                   0x000000011215e5d9 _dispatch_worker_thread3 + 111\r\n\t22  libsystem_pthread.dylib             0x00000001124f6637 _pthread_wqthread + 729\r\n\t23  libsystem_pthread.dylib             0x00000001124f440d start_wqthread + 13\r\n)"},"comment":{"url":"https://api.github.com/repos/krzyzanowskim/ObjectivePGP/issues/comments/160513134","html_url":"https://github.com/krzyzanowskim/ObjectivePGP/issues/6#issuecomment-160513134","issue_url":"https://api.github.com/repos/krzyzanowskim/ObjectivePGP/issues/6","id":160513134,"user":{"login":"jmjordan","id":210460,"avatar_url":"https://avatars.githubusercontent.com/u/210460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmjordan","html_url":"https://github.com/jmjordan","followers_url":"https://api.github.com/users/jmjordan/followers","following_url":"https://api.github.com/users/jmjordan/following{/other_user}","gists_url":"https://api.github.com/users/jmjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/jmjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmjordan/subscriptions","organizations_url":"https://api.github.com/users/jmjordan/orgs","repos_url":"https://api.github.com/users/jmjordan/repos","events_url":"https://api.github.com/users/jmjordan/events{/privacy}","received_events_url":"https://api.github.com/users/jmjordan/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T04:26:03Z","updated_at":"2015-11-30T04:26:03Z","body":"Nevermind. I found the problem. PGPKey.m was importing PGPSecretSubKeyPacket.m instead of PGPSecretSubKeyPacket.h."}}