RM0461
OUT
22.4.17
ECDSA verification
ECDSA verification operation (outlined in
parameters) and
The epplication should check if the output error is equal to zero, if it is different from zero,
the signature is not verified.
Parameters with direction
MODE
Curve prime order n
length
Curve modulus p length
Curve coefficient a sign
Curve coefficient |a|
Curve modulus value p
Curve base point G
IN
coordinate x
Curve base point G
coordinate y
Public-key curve point Q
coordinate x
Public-key curve point Q
coordinate y
Signature part r
Signature part s
Hash of message z
Curve prime order n
Parameters with direction
OUT Result: ECDSA verify
Table 152. Extended ECDSA sign (extra outputs)
Parameters with direction
Curve point kG coordinate x
Curve point kG coordinate y
Table 154
(output parameters).
Table 153. ECDSA verification (inputs)
Q
Q
Table 154. ECDSA verification (outputs)
Value (Note)
(0 ≤ x
1
(0 ≤ y
1
Section
22.3.5) is summarized in
Value (Note)
0x26
(In bits, not null)
(In bits, not null,
8 < value < 640)
0x0: positive
0x1: negative
(Absolute value, |a| < p)
(Odd integer prime,
640
0 < p < 2
)
(x < p)
(y < p)
(x
< p)
Q
(y
< p)
Q
(0 < r < n)
(0 < s < n)
M
(z < 2
)
(integer prime)
Value (Note)
0x0: valid signature
Not 0x0: invalid signature
RM0461 Rev 5
Public key accelerator (PKA)
Storage
< p)
RAM@0x103C
1
< p)
RAM@0x1090
1
Table 153
Storage
PKA_CR
RAM@0x404
RAM@0x4B4
RAM@0x45C
RAM@0x460
RAM@0x4B8
RAM@0x5E8
RAM@0x63C
RAM@0xF40
RAM@0xF94
RAM@0x1098
RAM@0xA44
RAM@0xFE8
RAM@0xD5C
Storage
RAM@0x5B0
Size
EOS
(input
Size
6 bits
32 bits
EOS
Size
32 bits
609/1306
617
Need help?
Do you have a question about the STM32WLEx and is the answer not in the manual?