From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- modules/libmar/tests/unit/data/0_sized.mar | Bin 0 -> 157 bytes modules/libmar/tests/unit/data/0_sized_file | 0 modules/libmar/tests/unit/data/1_byte.mar | Bin 0 -> 157 bytes modules/libmar/tests/unit/data/1_byte_file | 1 + modules/libmar/tests/unit/data/binary_data.mar | Bin 0 -> 673 bytes modules/libmar/tests/unit/data/binary_data_file | Bin 0 -> 512 bytes modules/libmar/tests/unit/data/cert9.db | Bin 0 -> 36864 bytes modules/libmar/tests/unit/data/key4.db | Bin 0 -> 61440 bytes .../tests/unit/data/manipulated_backend_collision.mar | Bin 0 -> 210 bytes .../tests/unit/data/manipulated_frontend_collision.mar | Bin 0 -> 210 bytes .../libmar/tests/unit/data/manipulated_is_contained.mar | Bin 0 -> 210 bytes .../libmar/tests/unit/data/manipulated_is_container.mar | Bin 0 -> 210 bytes .../tests/unit/data/manipulated_multiple_collision.mar | Bin 0 -> 249 bytes .../unit/data/manipulated_multiple_collision_first.mar | Bin 0 -> 249 bytes .../unit/data/manipulated_multiple_collision_last.mar | Bin 0 -> 249 bytes .../libmar/tests/unit/data/manipulated_same_offset.mar | Bin 0 -> 210 bytes modules/libmar/tests/unit/data/manipulated_signed.mar | Bin 0 -> 1194 bytes modules/libmar/tests/unit/data/multiple_file.mar | Bin 0 -> 723 bytes .../libmar/tests/unit/data/multiple_signed_no_pib.mar | Bin 0 -> 2125 bytes modules/libmar/tests/unit/data/multiple_signed_pib.mar | Bin 0 -> 2233 bytes .../libmar/tests/unit/data/multiple_signed_pib_2.mar | Bin 0 -> 2233 bytes .../tests/unit/data/multiple_signed_pib_mar.sig.0 | 11 +++++++++++ .../tests/unit/data/multiple_signed_pib_mar.sig.1 | 11 +++++++++++ .../tests/unit/data/multiple_signed_pib_mar.sig.2 | 11 +++++++++++ modules/libmar/tests/unit/data/mycert.der | Bin 0 -> 1189 bytes modules/libmar/tests/unit/data/mycert2.der | Bin 0 -> 1191 bytes modules/libmar/tests/unit/data/mycert3.der | Bin 0 -> 1191 bytes modules/libmar/tests/unit/data/no_pib.mar | Bin 0 -> 553 bytes modules/libmar/tests/unit/data/signed_no_pib.mar | Bin 0 -> 1085 bytes modules/libmar/tests/unit/data/signed_pib.mar | Bin 0 -> 1193 bytes .../libmar/tests/unit/data/signed_pib_mar.signature.0 | 11 +++++++++++ .../tests/unit/data/signed_pib_mar.signature.mycert2 | 11 +++++++++++ .../libmar/tests/unit/data/signed_pib_with_mycert2.mar | Bin 0 -> 1193 bytes 33 files changed, 56 insertions(+) create mode 100644 modules/libmar/tests/unit/data/0_sized.mar create mode 100644 modules/libmar/tests/unit/data/0_sized_file create mode 100644 modules/libmar/tests/unit/data/1_byte.mar create mode 100644 modules/libmar/tests/unit/data/1_byte_file create mode 100644 modules/libmar/tests/unit/data/binary_data.mar create mode 100644 modules/libmar/tests/unit/data/binary_data_file create mode 100644 modules/libmar/tests/unit/data/cert9.db create mode 100644 modules/libmar/tests/unit/data/key4.db create mode 100644 modules/libmar/tests/unit/data/manipulated_backend_collision.mar create mode 100644 modules/libmar/tests/unit/data/manipulated_frontend_collision.mar create mode 100644 modules/libmar/tests/unit/data/manipulated_is_contained.mar create mode 100644 modules/libmar/tests/unit/data/manipulated_is_container.mar create mode 100644 modules/libmar/tests/unit/data/manipulated_multiple_collision.mar create mode 100644 modules/libmar/tests/unit/data/manipulated_multiple_collision_first.mar create mode 100644 modules/libmar/tests/unit/data/manipulated_multiple_collision_last.mar create mode 100644 modules/libmar/tests/unit/data/manipulated_same_offset.mar create mode 100644 modules/libmar/tests/unit/data/manipulated_signed.mar create mode 100644 modules/libmar/tests/unit/data/multiple_file.mar create mode 100644 modules/libmar/tests/unit/data/multiple_signed_no_pib.mar create mode 100644 modules/libmar/tests/unit/data/multiple_signed_pib.mar create mode 100644 modules/libmar/tests/unit/data/multiple_signed_pib_2.mar create mode 100644 modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.0 create mode 100644 modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.1 create mode 100644 modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.2 create mode 100644 modules/libmar/tests/unit/data/mycert.der create mode 100644 modules/libmar/tests/unit/data/mycert2.der create mode 100644 modules/libmar/tests/unit/data/mycert3.der create mode 100644 modules/libmar/tests/unit/data/no_pib.mar create mode 100644 modules/libmar/tests/unit/data/signed_no_pib.mar create mode 100644 modules/libmar/tests/unit/data/signed_pib.mar create mode 100644 modules/libmar/tests/unit/data/signed_pib_mar.signature.0 create mode 100644 modules/libmar/tests/unit/data/signed_pib_mar.signature.mycert2 create mode 100644 modules/libmar/tests/unit/data/signed_pib_with_mycert2.mar (limited to 'modules/libmar/tests/unit/data') diff --git a/modules/libmar/tests/unit/data/0_sized.mar b/modules/libmar/tests/unit/data/0_sized.mar new file mode 100644 index 0000000000..357eeb9a87 Binary files /dev/null and b/modules/libmar/tests/unit/data/0_sized.mar differ diff --git a/modules/libmar/tests/unit/data/0_sized_file b/modules/libmar/tests/unit/data/0_sized_file new file mode 100644 index 0000000000..e69de29bb2 diff --git a/modules/libmar/tests/unit/data/1_byte.mar b/modules/libmar/tests/unit/data/1_byte.mar new file mode 100644 index 0000000000..a137f11adc Binary files /dev/null and b/modules/libmar/tests/unit/data/1_byte.mar differ diff --git a/modules/libmar/tests/unit/data/1_byte_file b/modules/libmar/tests/unit/data/1_byte_file new file mode 100644 index 0000000000..56a6051ca2 --- /dev/null +++ b/modules/libmar/tests/unit/data/1_byte_file @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/modules/libmar/tests/unit/data/binary_data.mar b/modules/libmar/tests/unit/data/binary_data.mar new file mode 100644 index 0000000000..7fef469898 Binary files /dev/null and b/modules/libmar/tests/unit/data/binary_data.mar differ diff --git a/modules/libmar/tests/unit/data/binary_data_file b/modules/libmar/tests/unit/data/binary_data_file new file mode 100644 index 0000000000..a0d7369e45 Binary files /dev/null and b/modules/libmar/tests/unit/data/binary_data_file differ diff --git a/modules/libmar/tests/unit/data/cert9.db b/modules/libmar/tests/unit/data/cert9.db new file mode 100644 index 0000000000..e0d6191e64 Binary files /dev/null and b/modules/libmar/tests/unit/data/cert9.db differ diff --git a/modules/libmar/tests/unit/data/key4.db b/modules/libmar/tests/unit/data/key4.db new file mode 100644 index 0000000000..85c9c5a215 Binary files /dev/null and b/modules/libmar/tests/unit/data/key4.db differ diff --git a/modules/libmar/tests/unit/data/manipulated_backend_collision.mar b/modules/libmar/tests/unit/data/manipulated_backend_collision.mar new file mode 100644 index 0000000000..41d4f78482 Binary files /dev/null and b/modules/libmar/tests/unit/data/manipulated_backend_collision.mar differ diff --git a/modules/libmar/tests/unit/data/manipulated_frontend_collision.mar b/modules/libmar/tests/unit/data/manipulated_frontend_collision.mar new file mode 100644 index 0000000000..582af58b59 Binary files /dev/null and b/modules/libmar/tests/unit/data/manipulated_frontend_collision.mar differ diff --git a/modules/libmar/tests/unit/data/manipulated_is_contained.mar b/modules/libmar/tests/unit/data/manipulated_is_contained.mar new file mode 100644 index 0000000000..d51b23587d Binary files /dev/null and b/modules/libmar/tests/unit/data/manipulated_is_contained.mar differ diff --git a/modules/libmar/tests/unit/data/manipulated_is_container.mar b/modules/libmar/tests/unit/data/manipulated_is_container.mar new file mode 100644 index 0000000000..98b33ce9e5 Binary files /dev/null and b/modules/libmar/tests/unit/data/manipulated_is_container.mar differ diff --git a/modules/libmar/tests/unit/data/manipulated_multiple_collision.mar b/modules/libmar/tests/unit/data/manipulated_multiple_collision.mar new file mode 100644 index 0000000000..7e0a3dd724 Binary files /dev/null and b/modules/libmar/tests/unit/data/manipulated_multiple_collision.mar differ diff --git a/modules/libmar/tests/unit/data/manipulated_multiple_collision_first.mar b/modules/libmar/tests/unit/data/manipulated_multiple_collision_first.mar new file mode 100644 index 0000000000..a10d3eb53b Binary files /dev/null and b/modules/libmar/tests/unit/data/manipulated_multiple_collision_first.mar differ diff --git a/modules/libmar/tests/unit/data/manipulated_multiple_collision_last.mar b/modules/libmar/tests/unit/data/manipulated_multiple_collision_last.mar new file mode 100644 index 0000000000..bfbb9ba853 Binary files /dev/null and b/modules/libmar/tests/unit/data/manipulated_multiple_collision_last.mar differ diff --git a/modules/libmar/tests/unit/data/manipulated_same_offset.mar b/modules/libmar/tests/unit/data/manipulated_same_offset.mar new file mode 100644 index 0000000000..1326d1afd8 Binary files /dev/null and b/modules/libmar/tests/unit/data/manipulated_same_offset.mar differ diff --git a/modules/libmar/tests/unit/data/manipulated_signed.mar b/modules/libmar/tests/unit/data/manipulated_signed.mar new file mode 100644 index 0000000000..df8b3b5dbb Binary files /dev/null and b/modules/libmar/tests/unit/data/manipulated_signed.mar differ diff --git a/modules/libmar/tests/unit/data/multiple_file.mar b/modules/libmar/tests/unit/data/multiple_file.mar new file mode 100644 index 0000000000..183493a368 Binary files /dev/null and b/modules/libmar/tests/unit/data/multiple_file.mar differ diff --git a/modules/libmar/tests/unit/data/multiple_signed_no_pib.mar b/modules/libmar/tests/unit/data/multiple_signed_no_pib.mar new file mode 100644 index 0000000000..fb56eef98e Binary files /dev/null and b/modules/libmar/tests/unit/data/multiple_signed_no_pib.mar differ diff --git a/modules/libmar/tests/unit/data/multiple_signed_pib.mar b/modules/libmar/tests/unit/data/multiple_signed_pib.mar new file mode 100644 index 0000000000..3624436cf5 Binary files /dev/null and b/modules/libmar/tests/unit/data/multiple_signed_pib.mar differ diff --git a/modules/libmar/tests/unit/data/multiple_signed_pib_2.mar b/modules/libmar/tests/unit/data/multiple_signed_pib_2.mar new file mode 100644 index 0000000000..edce42b854 Binary files /dev/null and b/modules/libmar/tests/unit/data/multiple_signed_pib_2.mar differ diff --git a/modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.0 b/modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.0 new file mode 100644 index 0000000000..fa75b9f231 --- /dev/null +++ b/modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.0 @@ -0,0 +1,11 @@ +biW+t1VP/UUp/B+xnQNKRDib3r4ZYP/HX/O5ZVPaTalCIZJfeGjoGK8TAlNUQUPZ +rHK/SZqr7rzsWlqb6rAGBWphnaZ3202luiaCBtb1Vi/MS7tPIssC6m2gvy5rwhMA +xaSJr9Qyoj6AdMbBryG7ZEuV/HPw7CAs1djbHSa0KUsL8Xj1c5kk/zFgh3EEM7ap +WBlfNRD7wggiWA4o/58gSWgjjqsFuiI5DH7cL3t3AisdBVAEI4A7h0tvX/9P5ipu +0kthhZyg0lR6denEjQ8RMxTuLoa3KCuhrUC10oUb+ZhpdDEPCL6Dt2eb8FeB3rGd +dzVzu2WVkBYU4JmDjOanGkOv8hSb8Efi7iZe4+9zEqqgymtCy0w4zzAYToTuaHK8 +1ryrtIzCt5AhGpcX7IJfC1Lc1TOzLa6/gigxj60wdxdWuP4d6tvraJMvSX47oIVM +gB6Gu+G3LEPGS4Vcqun+G9sn2ee+4L2E/ZK4nh9kzAkpNR5COrzG6FxhuocIfpWa +8F/sh3hZPJuuCopqd0lUfrkvwPe1hMd7RjMgPVTT0Mkol3YliMAW+kvUqrXZ/o6A +6rLt2+t7V/FbYY1EJNhjISTlUYyWERPhTO6qMRbqUzNBd5/Dh6mRI7hxIf5KEQdu +ZvJ8ORomD++TlXQsqcYCuYNZ5EM0npe/UfHU7JYuHo0= \ No newline at end of file diff --git a/modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.1 b/modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.1 new file mode 100644 index 0000000000..3ab4cef5f4 --- /dev/null +++ b/modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.1 @@ -0,0 +1,11 @@ +UtzJoTa2NS5uBfNTCeVVEC6R8Iaad8vq/KNJwlYsn6V+20mp/vBJIXh+hmHSGNEA +ynpbqD1KLgzPMSsBbF2Azc6eT0frVDdPlKc5FyhpkB9YniOSpt+oWiU8M7UMsVhG +/+9ClLLXImVeq3oySxGodpMh04sYrzBUR136cdk6mb+dAT3523xKRXZM72+WlQFQ +G1rfzGTEWWFJCIwDJisauYbQlipvl6mfZttdQ2a7hgVbAJmFbm7nUsYr7t1ezP0A +Jy1WIrZY4l8OzoL0TZ3aM1bC2vFYxv+SuH6E51MdVt/mLc7JSGzVmqdP0C58xNSz +zmkfYwj5fWh6jRa6XQAl7Au3jujdVPV22bSdZV05RlypgLQHZmlvi+yRd8OCPJZY +NLU8K3xZQP4sGr5vePtUqoVslsMtkUh/LUSTAAmFF8qPotxEzMb1LFYokPH37e1R +8EwZbyp4wXOy7KYx2rB90J+4PoGPYIUe8xERHGDmrCt9G+siFB6OOSQEQEj5XfLw +MkJSI9K3ldMtzIiDFKikmSpkCyeBFmEQrb6/zgl1qUBcE52yPkrybZdtvwseGrhU +43ZsKX1/1FSj8MOkXuCFTMLMFRDpXuGvLTNPy1DPA3nsa0XoYFzp8Sg4pjJd4KUL +mhYiy+v/27LfonFX0ak9+HlANsV96ixf3mrkVz7Tfc4= \ No newline at end of file diff --git a/modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.2 b/modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.2 new file mode 100644 index 0000000000..974a425137 --- /dev/null +++ b/modules/libmar/tests/unit/data/multiple_signed_pib_mar.sig.2 @@ -0,0 +1,11 @@ +F6F1LmabkmheGolLdYlWkaSnM782EoJnZAiDYOszsetXWltFLCd/SrfKaAABBUJZ +jPS5EeEAFtNK6INCs/ULujohnQwhiMWwcLm7f5CGEaC7UzKB4tP5ZvnBASTDhAMj +BipU2798XYyA5+LmWL81S+LZKEhGXdPsIC4GIqlY7hA0DKgsS9hWxC7VfuZb3r8T +Mp//aOM79+DnPBHJYKBzoDLO/F/GlH0Hr7Gih/nOkiHTvQgZ3PDAxwhGgwLAsRA0 ++LmrQ3MlHrLfT9SrPZq3kUtX/JIvYfAaUE8cV941a7cvfVY1RPjznJBk2lYowNys +GhjoS9OpRBqdMVfY4dHZoCEgc07siDXhTCw4J9tPAjqOdsqwgsuoLhTEcIYeWnR7 +otYnFITcDvRRRkP98SRPjKquemvcYgeyX7vHomN8V+GhTlCn8NF4ModE1Ny7whiu +V/+dwFH3S3Phg2wo2THfU1igUzZUJ5LhiO486NVa7n3wLZqpAMnsvDujqoL/8tWz +ZQ5o/RF6XJHA0UKXxt3UiGZHDGuS3I6clZJa1PXgSfEHZyQmQ24bl2fmDURdLUbt ++t//Y5PZTktwjxIELbGYvVXoJYYHW7Jr5PlxvUxqq7WRHwOd9nL4Bs8gqr64I9sB +8yMnjffnl5ZL53pS6SjIzPgymYNOYN1KpDuNoSBuXN8= \ No newline at end of file diff --git a/modules/libmar/tests/unit/data/mycert.der b/modules/libmar/tests/unit/data/mycert.der new file mode 100644 index 0000000000..ea1fd47faa Binary files /dev/null and b/modules/libmar/tests/unit/data/mycert.der differ diff --git a/modules/libmar/tests/unit/data/mycert2.der b/modules/libmar/tests/unit/data/mycert2.der new file mode 100644 index 0000000000..d8cdfea972 Binary files /dev/null and b/modules/libmar/tests/unit/data/mycert2.der differ diff --git a/modules/libmar/tests/unit/data/mycert3.der b/modules/libmar/tests/unit/data/mycert3.der new file mode 100644 index 0000000000..b942d4d795 Binary files /dev/null and b/modules/libmar/tests/unit/data/mycert3.der differ diff --git a/modules/libmar/tests/unit/data/no_pib.mar b/modules/libmar/tests/unit/data/no_pib.mar new file mode 100644 index 0000000000..8976e7d737 Binary files /dev/null and b/modules/libmar/tests/unit/data/no_pib.mar differ diff --git a/modules/libmar/tests/unit/data/signed_no_pib.mar b/modules/libmar/tests/unit/data/signed_no_pib.mar new file mode 100644 index 0000000000..92d97fec51 Binary files /dev/null and b/modules/libmar/tests/unit/data/signed_no_pib.mar differ diff --git a/modules/libmar/tests/unit/data/signed_pib.mar b/modules/libmar/tests/unit/data/signed_pib.mar new file mode 100644 index 0000000000..1b8baa7969 Binary files /dev/null and b/modules/libmar/tests/unit/data/signed_pib.mar differ diff --git a/modules/libmar/tests/unit/data/signed_pib_mar.signature.0 b/modules/libmar/tests/unit/data/signed_pib_mar.signature.0 new file mode 100644 index 0000000000..d597fa5491 --- /dev/null +++ b/modules/libmar/tests/unit/data/signed_pib_mar.signature.0 @@ -0,0 +1,11 @@ +Qv7nfMB5+ri3errM8NqkCl7LwWFHu3DXBFAHaw3Rl27hGyZw4xR+oKbQMkwvdrY7 +GxWZ0vBNSI4nte+Ii6XjDQcnzQgqINEZkL5EVMs1re1zA8OzuItxtXWeCoAPGgMg +uhvPVWxMCUMia1yCWpVKwA9CKfsX+0+5jbSLeMg43q6Zoj+AVanCZZlQiH2nuBPL +YB9hib9GlK4kjS1EqFmYuA8oDQiWDmWK1ULAmFUy9Ezho4il21rG4FQJYywLTQSr +8PiSTKVH+8LZAvPNEzhG3UGOVsj85w2TzmLbvSiYFJCMx8NQLHbB+cmt+1ytenaK +Qt+b2PC5Hs8LczOxTxpzgtAZPQbx2jqCxCeFOZGzY7Gfz4oi4YdqY+d4n854wwIb +rxX7asiYwhOHoJ5nxKoqN1gsRyshSqYDH9+TwXJPrk1S8i5sIBMQpycr+f+1MPGx +RsoorG3sKUfC+dXi3QqZEnBc+ULqIOrmW9J3TTUsxNpOkm03NvPQZyeF1wpU4jfz +W1Hnu7nltdqDX1bdmCChZ3rP+7JJYwfvVtmBseIFGZHVMhqvzvvdlxLn+MeTDiAA +Zrhi/BNkQstX7Bdqe58adzRAv/O80DH8ErKBqvqh17HXwMmGx6i+EGyNt8DfFLSm +xEzxnsmFnOaBytzpth4pltEEpioQPS7/CSdRydi/29w= \ No newline at end of file diff --git a/modules/libmar/tests/unit/data/signed_pib_mar.signature.mycert2 b/modules/libmar/tests/unit/data/signed_pib_mar.signature.mycert2 new file mode 100644 index 0000000000..045fc80be1 --- /dev/null +++ b/modules/libmar/tests/unit/data/signed_pib_mar.signature.mycert2 @@ -0,0 +1,11 @@ +i6oFIDMnyZ5CUaYUCg8MEL48puCQdZMH9s2ZoGKzxK4YO6a/2Yhur4jNRfoxgQm3 +2o4qO4gUCjcwZmQHoSmseELJWP+6I929SZ4KUc/bXsIOMlZLcq+YSQSCbmkM/AeV +NMW4SR8eVtU0BjstZafaWtvCp0nzYXwyDLUUKl006CzylCjGDO2yNC3GGTc6N0cC +I1nzDOTNYknuHLJLhjJaJEd+c/J5g3BsDXi3Bh7ZtO1OkU/x/jhxbPfK2YsyHpUm +8/4BKDy6ocV2zrDXuE4ZBPJXsOGshr3kZLAkrhUbGK14EEFx+PtCRLigfWlGIWd1 +ZdYv+0r+JaOdskArdcHCtfBF6IOnQLB1UjD2NsyhMnKPPm7KO26A+ig8DxlTyt4N +sop0UryhQxHhh/iTkIJlMN1JONr39EG66pI/jo2HwArNL/sfqZ1m9GR+tDKKtMYm +gFn0nxQiIgquYA2Q3sKdgtcHvQGxxvyKOa3lelykjny/4RCwsfM1S1KwG9TpPHW4 +5VUoztOuIsSpAwdc+gzNfzvqCi0ac0bUF66ksZ2qlKpG0VRq0O9Rdtv9FClbVUWM +PRlmUuRdXkn6ouCx58dwHoABXr910GdqV5EoNXNyDG/Mnqu0eYSGDRQEjVvh5v+u +FSbVjBI+ie7oTFeInJ7eWgJ7/XTMtHsCAw+RHN1drFo= \ No newline at end of file diff --git a/modules/libmar/tests/unit/data/signed_pib_with_mycert2.mar b/modules/libmar/tests/unit/data/signed_pib_with_mycert2.mar new file mode 100644 index 0000000000..22a998e227 Binary files /dev/null and b/modules/libmar/tests/unit/data/signed_pib_with_mycert2.mar differ -- cgit v1.2.3