Fix <list/> (forgot <t>...</t> wrappers).
This commit is contained in:
parent
48585b7d8e
commit
b0aa9c35b2
1 changed files with 71 additions and 65 deletions
|
|
@ -128,31 +128,33 @@
|
||||||
|
|
||||||
<t>All signed PDUs are generated in the same way:</t>
|
<t>All signed PDUs are generated in the same way:</t>
|
||||||
|
|
||||||
<list style="symbols">
|
<t>
|
||||||
|
<list style="symbols">
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Compose the PDU, with all fields including "Sig Type" and
|
Compose the PDU, with all fields including "Sig Type" and
|
||||||
"Signature Length" set, but omitting the trailing
|
"Signature Length" set, but omitting the trailing
|
||||||
"Signature" field itself. This is the "message to be
|
"Signature" field itself. This is the "message to be
|
||||||
signed" for purposes of the signature algorithm.
|
signed" for purposes of the signature algorithm.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Generate the signature as specified for the chosen signature
|
Generate the signature as specified for the chosen signature
|
||||||
suite, using the private member of the asymmetric key pair.
|
suite, using the private member of the asymmetric key pair.
|
||||||
In general this will involve first hashing the "message to
|
In general this will involve first hashing the "message to
|
||||||
be signed" then signing the hash, but the precise details
|
be signed" then signing the hash, but the precise details
|
||||||
may vary with the specific algorithm. The result will be a
|
may vary with the specific algorithm. The result will be a
|
||||||
sequence of octets, the length of which MUST be equal to the
|
sequence of octets, the length of which MUST be equal to the
|
||||||
setting of the "Signature Length" field.
|
setting of the "Signature Length" field.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Construct the complete message by appending the signature
|
Construct the complete message by appending the signature
|
||||||
octets to the otherwise complete message composed above.
|
octets to the otherwise complete message composed above.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
</list>
|
</list>
|
||||||
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
In the case of the OPEN PDU, the message to be signed will
|
In the case of the OPEN PDU, the message to be signed will
|
||||||
|
|
@ -171,37 +173,39 @@
|
||||||
OPEN PDU also establishes the session key.
|
OPEN PDU also establishes the session key.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<list style="symbols">
|
<t>
|
||||||
|
<list style="symbols">
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Verify that the PDU is syntactically correct, and extract
|
Verify that the PDU is syntactically correct, and extract
|
||||||
the Auth Type, Key, Sig Type, and Signature fields.
|
the Auth Type, Key, Sig Type, and Signature fields.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Verify that Auth Type and Sig Type refer to the same
|
Verify that Auth Type and Sig Type refer to the same
|
||||||
algorithm suite, and that said algorithm suite is one that
|
algorithm suite, and that said algorithm suite is one that
|
||||||
the implementation understands.
|
the implementation understands.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Construct the "message to be verified" by truncating the PDU
|
Construct the "message to be verified" by truncating the PDU
|
||||||
to remove the Signature field (in practice this should not
|
to remove the Signature field (in practice this should not
|
||||||
require copying any data, just subtract the signature length
|
require copying any data, just subtract the signature length
|
||||||
from the PDU length).
|
from the PDU length).
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Verify the message constructed above against the public key
|
Verify the message constructed above against the public key
|
||||||
using the rules for the specific signature suite.
|
using the rules for the specific signature suite.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Record Auth Type and Key as this sessions's authentication
|
Record Auth Type and Key as this sessions's authentication
|
||||||
type and session key, for use in verifying subseuqent PDUs.
|
type and session key, for use in verifying subseuqent PDUs.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
</list>
|
</list>
|
||||||
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
If any of the above verification steps fail, generate an error
|
If any of the above verification steps fail, generate an error
|
||||||
|
|
@ -227,30 +231,32 @@
|
||||||
but follows the same basic pattern as for OPEN PDUs.
|
but follows the same basic pattern as for OPEN PDUs.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<list style="symbols">
|
<t>
|
||||||
|
<list style="symbols">
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Verify that the PDU is syntactically correct, and extract
|
Verify that the PDU is syntactically correct, and extract
|
||||||
the Sig Type and Signature fields.
|
the Sig Type and Signature fields.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Verify that Sig Type refers to the same algorithm suite as
|
Verify that Sig Type refers to the same algorithm suite as
|
||||||
the Auth Type recorded during verification of the OPEN PDU.
|
the Auth Type recorded during verification of the OPEN PDU.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Construct the "message to be verified" by truncating the PDU
|
Construct the "message to be verified" by truncating the PDU
|
||||||
to remove the Signature field.
|
to remove the Signature field.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
Verify the message constructed above against the recorded
|
Verify the message constructed above against the recorded
|
||||||
session key using the rules for the specific signature
|
session key using the rules for the specific signature
|
||||||
suite.
|
suite.
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
</list>
|
</list>
|
||||||
|
</t>
|
||||||
|
|
||||||
<t>
|
<t>
|
||||||
If any of the above verification steps fail, generate an error
|
If any of the above verification steps fail, generate an error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue