mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Кривая подпись, испраление тормозов при подписи
This commit is contained in:
parent
f7cfaaa543
commit
f3c7f57e50
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue