AIX Support: Need replacement for 'xxd'
hellerda opened this issue · comments
There is no "xxd" command on AIX, and this isn't one of the packages provided by the Linux Toolbox for AIX. There is "od", which can read binary, but I'm not sure if it can write a file in binary format, which is what I'm using xxd for.
xxd is currently used in two places, in crtSignedContainer.sh. The first is in is_raw_key(). The second is in creating the message digest of some data that gets sent to signframework.
For the first issue, I'm going to replace this with a shell construct. It's not a POSIX compliant construct, but there are enough non POSIX bits in the script already that it doesn't matter. And it is tested to work on AIX.
For the 2nd issue, I'm going to instead create the .md file from the C program, which is how it should have been to start with. Doing it in shell was just a shortcut.