[FIX] Кривая подпись, испраление тормозов при подписи

This commit is contained in:
Gravit 2019-10-27 22:39:08 +07:00
parent f7cfaaa543
commit f3c7f57e50
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -200,7 +200,7 @@ private String hashMainSection(Attributes attributes) throws IOException {
private byte[] signSigFile(byte[] sigContents) throws Exception { private byte[] signSigFile(byte[] sigContents) throws Exception {
CMSSignedDataGenerator gen = this.gen.get(); CMSSignedDataGenerator gen = this.gen.get();
CMSTypedData cmsData = new CMSProcessableByteArray(sigContents); CMSTypedData cmsData = new CMSProcessableByteArray(sigContents);
CMSSignedData signedData = gen.generate(cmsData, true); CMSSignedData signedData = gen.generate(cmsData, false);
return signedData.getEncoded(); return signedData.getEncoded();
} }