I have a situation where I write a character stream to a file. The file content gets signed and the signature is sent to a service provider together with the file content.
The signing is done using openssl.
This works perfectly on a dev PC, which is runnning Windows and has a little-endian architecture.
The problem is as soon as I do this on the server, which has a big-endian architecture, the signed value is incorrect according to the service provider.
The content is signed using RSA SHA256 with PSS padding.
I've had a look at $nconvert, $sconvert, etc., but can't get to a solution.
Is there a way to convert the 8-bit character stream to little-endian format on the big-endian server using Cache or some other command?