1673481589.FILE5_44-14-gbb955ca3.jar-manifest-signature-file-pkcs-7-signed-data-fc-stegerman.patch 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. Subject: JAR Manifest & Signature File, PKCS#7 Signed Data (FC Stegerman)
  2. Origin: FILE5_44-14-gbb955ca3 <https://github.com/file/file/commit/FILE5_44-14-gbb955ca3>
  3. Upstream-Author: Christos Zoulas <christos@zoulas.com>
  4. Date: Wed Jan 11 23:59:49 2023 +0000
  5. --- a/magic/Magdir/der
  6. +++ b/magic/Magdir/der
  7. @@ -137,3 +137,10 @@
  8. >>>>&0 der seq
  9. >>>>>&0 der obj_id3=550403
  10. >>>>>&0 der utf8_str=x \b, Subject=%s
  11. +
  12. +# PKCS#7 Signed Data (e.g. JAR Signature Block File)
  13. +# OID 1.2.840.113549.1.7.2 (2a864886f70d010702)
  14. +# Reference: https://www.rfc-editor.org/rfc/rfc2315
  15. +0 der seq
  16. +>&0 der obj_id9=2a864886f70d010702 DER Encoded PKCS#7 Signed Data
  17. +!:ext RSA/DSA/EC
  18. --- a/magic/Magdir/java
  19. +++ b/magic/Magdir/java
  20. @@ -43,3 +43,10 @@
  21. >6 leshort >0x00 \b, version %d
  22. >4 leshort x \b.%d
  23. !:mime application/x-java-image
  24. +
  25. +# JAR Manifest & Signature File
  26. +# Reference: https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html
  27. +0 string/t Manifest-Version:\x201.0 JAR Manifest
  28. +!:ext MF
  29. +0 string/t Signature-Version:\x201.0 JAR Signature File
  30. +!:ext SF