Xades.Password := aHaslo;
Xades.KeyFilePath := aSciezkaKlucza; Error -208 Invalid operation
Xades.CertFilePath := aSciezkaCertyfikatu ;
Xades.PKCS11Param.isToken := False;
Xades.Packaging := Enveloped;
Xades.Template := xPlEnveloped;
Xades.PathToOriginalFile := ExtractFilePath(aPLikDoPodpisu);
File exeist and starts -----BEGIN ENCRYPTED PRIVATE KEY-----
MIH Please help.
Bernard
(Bernard)
2
Hi, this is an AES error:
AES_BAD_PADDING = -208; // if the padding is not correct
This can have two root causes:
- the password is incorrect
- there is a conversion/format issue of either the key, the IV or the text to decrypt
Can you decrypt your key with another tool and this password?
You can send the key at bernard [at] tmssoftware [dot] com, if you wish.