Sorry, I accidentally posted this in Runtime but I think this forum may be more appropriate. I am having trouble verifying a RSA PKCS1.5 SHA256 signature given a message, the signature as a hex string, and a public key as a .pem file. Here is an example of how I am trying to verify a signature using the CmpCrypto library in CODESYS V3.5 SP15: FUNCTION AsymmetricVerifyMessage : BOOL VAR_INTPUT sMessage : REFERENCE TO STRING; szMessage : ULINT; abySignature : REFERENCE TO ARRAY[0..255] OF BYTE; szSignature...
I am having trouble verifying a RSA PKCS1.5 SHA256 signature given a message, the signature as a hex string, and a public key as a .pem file. Here is an example of how I am trying to verify a signature using the CmpCrypto library in CODESYS V3.5.15: FUNCTION AsymmetricVerifyMessage : BOOL VAR_INTPUT sMessage : REFERENCE TO STRING; szMessage : ULINT; abySignature : REFERENCE TO ARRAY[0..255] OF BYTE; szSignature : ULINT; abyPublicKey : REFERENCE TO ARRAY[0..291] OF BYTE; szPublicKey : ULINT; END_VAR...