hi,
i have s signatur, a public key and the sign algorithmus.
how can i vailidate the signatur ?
exsample
algorythmus:
ecdsa-plain-SHA384
signatur:
GxaJcoaL+rUVjEfUmV0LsUPpM/FThV43kVmVh8YCUDN7GwJRqXQug6B0h/BFgRnsDF/L62rLNFgV
+Sf8ykzE3U5nzCXB0HPHlDyh9WsEuTNE8ktcCae9YpMidqJnWLkY
public key:
BIgT5/O6q2MNBKerCVR1jiwbTUN5nVSwmrV96qP2oTpgyAD51k/NC93/77v4YxaUtAFeMWfLDhC6
AzqH5l9mjZQnKHVD4ytj4emB6aIjraAFxCD0O8kvafF47xdtgHGi1A==
Marion
(Marion (TMS Crypto Pack developer))
January 21, 2020, 8:58am
2
Hi,
To verify a signature, we need the signed text or document, not only the signature.
Best regards,
Marion
V0;Kasse 1;Kassenbeleg-V1;Beleg^12.50_2.99_0.00_0.00_0.00^4.99:Bar_10.50:Unbar;19;192;2020-01-23T13:25:09.000Z;2020-01-23T13:25:31.000Z;ecdsa-plain-SHA384;unixTime;eFiM5526PqVBJI8i64suD126xXwH9vGt8dGBNX/MsvXvlBOWNmWmXYNcQAE45P0GNwjQ9h9pbUaQeydY8w3rNgzu6mUlm8MDwAydP2DaVzxoiWCLfMDROBjpTz6qIO/K;BAotg90S0D3h3+7oTFqSwMwidegbd3UN+J5dfwYMEK3JXM3z3AyZziV/ZdnFxAHy4SFVJX2fJfVJpi+hxWs28Yjrc9ugqDhP9D3OdrIDrj0ralUddrH7vR2ZylPUFqpw8w==
The String to verify is:
V0;Kasse 1;Kassenbeleg-V1;Beleg^12.50_2.99_0.00_0.00_0.00^4.99:Bar_10.50:Unbar;19;192;2020-01-23T13:25:09.000Z;2020-01-23T13:25:31.000Z;ecdsa-plain-SHA384;unixTime;
the algorithmus:
ecdsa-plain-SHA384
the signatur is:
eFiM5526PqVBJI8i64suD126xXwH9vGt8dGBNX/MsvXvlBOWNmWmXYNcQAE45P0GNwjQ9h9pbUaQeydY8w3rNgzu6mUlm8MDwAydP2DaVzxoiWCLfMDROBjpTz6qIO/K
the pulic key is:
BAotg90S0D3h3+7oTFqSwMwidegbd3UN+J5dfwYMEK3JXM3z3AyZziV/ZdnFxAHy4SFVJX2fJfVJpi+hxWs28Yjrc9ugqDhP9D3OdrIDrj0ralUddrH7vR2ZylPUFqpw8w==
Marion
(Marion (TMS Crypto Pack developer))
January 23, 2020, 3:21pm
4
Hi,
My library reports an error: the public key is not on the curve. So maybe the curve is not the same that I am using or public key formats are different. Is the curve the P-384 one? Where do you obtain this public key?
Best regards,
Marion
the public key and the signatur are base64 strings, i have a external testsoftware and the testsoftware valid the signature positive.
how i can self test the signature with tms components ? who to start ?
Marion
(Marion (TMS Crypto Pack developer))
January 24, 2020, 8:52am
6
I think that your curve is not supported by our TMS Cryptography Pack.
Best regards,
Marion