Loading app/src/main/java/foundation/e/apps/application/model/IntegrityVerificationTask.kt +32 −27 Original line number Diff line number Diff line Loading @@ -91,6 +91,7 @@ class IntegrityVerificationTask( apkInputStream: BufferedInputStream, apkSignatureInputStream: InputStream, publicKeyInputStream: InputStream): Boolean { try { var jcaPGPObjectFactory = JcaPGPObjectFactory(PGPUtil.getDecoderStream(apkSignatureInputStream)) Loading Loading @@ -126,6 +127,10 @@ class IntegrityVerificationTask( publicKeyInputStream.close() return signature.verify() } catch (e: Exception) { e.printStackTrace() } return false; } } Loading Loading
app/src/main/java/foundation/e/apps/application/model/IntegrityVerificationTask.kt +32 −27 Original line number Diff line number Diff line Loading @@ -91,6 +91,7 @@ class IntegrityVerificationTask( apkInputStream: BufferedInputStream, apkSignatureInputStream: InputStream, publicKeyInputStream: InputStream): Boolean { try { var jcaPGPObjectFactory = JcaPGPObjectFactory(PGPUtil.getDecoderStream(apkSignatureInputStream)) Loading Loading @@ -126,6 +127,10 @@ class IntegrityVerificationTask( publicKeyInputStream.close() return signature.verify() } catch (e: Exception) { e.printStackTrace() } return false; } } Loading