Git Product home page Git Product logo

checkmedia's Introduction

checkmedia

Adding digests to iso images

Supported digests are: md5, sha1, sha224, sha256, sha384, sha512.

There are 512 bytes reserved for application specific use in the iso header at offset 0x373 (cf. application_data in struct iso_primary_descriptor in /usr/include/linux/iso_fs.h). We're free to do anything with it.

mkisofs fills it with spaces (512 x ' '), there's no mkisofs command line option to set the field to some other value.

'tagmedia' calculates the digest and puts a line like 'sum=<HEX_DIGEST>' into the field.

'checkmedia' calculates the digest but assumes to be spaces in the range 0x8373-0x8572 of the iso image (iso header starts at 0x8000) and compares the result against the stored digest.

To avoid problems with isohybrid images, checkmedia also does not check the first 512 bytes of the iso image (isohybrid writes an MBR there).

Usage

  • add checksum
tagmedia --sha256 foo.iso
  • verify checksum
checkmedia foo.iso

Downloads

Get the latest version from the openSUSE Build Service.

openSUSE Development

To build, simply run make. Install with make install.

Basically every new commit into the master branch of the repository will be auto-submitted to all current SUSE products. No further action is needed except accepting the pull request.

Submissions are managed by a SUSE internal jenkins node in the InstallTools tab.

Each time a new commit is integrated into the master branch of the repository, a new submit request is created to the openSUSE Build Service. The devel project is system:install:head.

*.changes and version numbers are auto-generated from git commits, you don't have to worry about this.

The spec file is maintained in the Build Service only. If you need to change it for the master branch, submit to the devel project in the build service directly.

Development happens exclusively in the master branch. The branch is used for all current products.

You can find more information about the changes auto-generation and the tools used for jenkis submissions in the linuxrc-devtools documentation.

checkmedia's People

Contributors

wfeldt avatar imobachgs avatar bmwiedemann avatar kobliha avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.