• osm0sis's avatar
    SignBoot: also catch empty streamed signature as indicating not signed · 8b0b4a2c
    osm0sis authored
    - compare against new byte[] array as a quick tell, since when streaming from a partition with an unsigned image "signature" would of course read without issue but then remain filled by zero padding, resulting in the following:
        java.io.IOException: unexpected end-of-contents marker
            at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source:14)
            at com.topjohnwu.signing.SignBoot$BootSignature.<init>(SignBoot.java:235)
            at com.topjohnwu.signing.SignBoot.verifySignature(SignBoot.java:144)
            at com.topjohnwu.signing.BootSigner.main(BootSigner.java:15)
            at a.a.main(a.java:20)
    8b0b4a2c
Name
Last commit
Last update
..
topjohnwu/signing Loading commit data...