File tree 3 files changed +18
-1
lines changed
main/java/org/redline_rpm
3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 31
31
*/
32
32
public class SignatureGenerator {
33
33
34
- protected static final int SIGNATURE_SIZE = 287 ;
34
+ protected static final int SIGNATURE_SIZE = 543 ;
35
35
protected final boolean enabled ;
36
36
protected Entry < byte []> headerOnlyRSAEntry ;
37
37
protected Entry < byte []> headerAndPayloadPGPEntry ;
Original file line number Diff line number Diff line change @@ -423,6 +423,23 @@ public void testSigning() throws Exception {
423
423
assertNotNull ( format .getSignature ().getEntry ( LEGACY_PGP ));
424
424
}
425
425
426
+ @ Test
427
+ public void testSigningBiggerRSAHeader () throws Exception {
428
+
429
+ File dir = ensureTargetDir ();
430
+
431
+ File filename = new File (dir , "rpmtest-1.0-1.noarch.rpm" );
432
+
433
+ RedlineTask task = createBasicTask ( dir );
434
+ task .setPrivateKeyRingFile ( new File ( getFileResource ( "/pgp/secringBiggerRSAHeader.gpg" )));
435
+ task .setPrivateKeyPassphrase ( "test" );
436
+ task .execute ();
437
+
438
+ Format format = getFormat ( filename );
439
+ assertNotNull ( format .getSignature ().getEntry ( RSAHEADER ));
440
+ assertNotNull ( format .getSignature ().getEntry ( LEGACY_PGP ));
441
+ }
442
+
426
443
private Format getFormat ( File filename ) throws IOException {
427
444
Scanner scanner = new Scanner ();
428
445
return scanner .run (new ReadableChannelWrapper ( Channels
You can’t perform that action at this time.
0 commit comments