INOS
|
To ensure that config files are valid and unchanged they can be signed with a private key. The signature is added to the config files (only possible with the download format Indel image). This signature can then be verified in the running system. The user application needs to provide the corresponding public key to be used in the verification.
Please see the complete description how to setup the project in https://doc.indel.ch/doku.php?id=software:embedded:indel_image
In the user application a function has to be implemented which will be called by the running system if an image needs to be verified. The function should return the public key and optionally the additional info as entered in the iDev options.
If the key obfuscation was used during creation of the private/public key pair then the public key needs to be unobfuscated first. This function is available in the inos system. The provided secret can be used as string in the source code in the simplest form. To get more secrecy this string could also be created in the code dynamically so it is only available in RAM and not in the source code.
Every image has a Content-Type describing the content. This string is used in the system to know how to handle the image, whether it's a config file, a kernel system, a resource or anything else. It's also possible to use a custom type to implement your own processing. However to handle custom types the system needs also a handler for this type. In the Indel installation directory are templates for a handler that can be adjusted to your own needs.