Skip to content

Commit fed13f0

Browse files
authored
Merge pull request #281 from cose-wg/ecdsa-format
Fixed length ECDSA format
2 parents a91e29a + 13fdc9e commit fed13f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

draft-ietf-cose-cbor-encoded-cert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ For elliptic curve public keys in Weierstraß form (id-ecPublicKey), keys may be
357357

358358
### Encoding of issuerSignatureValue
359359

360-
For ECDSA signatures, the SEQUENCE and INTEGER type and length fields as well as any leading 0x00 byte (to indicate that the number is not negative) are omitted. If the two INTEGER value fields have different lengths, the shorter INTEGER value field is padded with zeroes so that the two fields have the same length. The resulting byte string is encoded as a CBOR byte string.
360+
For ECDSA signatures, the SEQUENCE and INTEGER type and length fields as well as any leading 0x00 byte (to indicate that the number is not negative) are omitted. Each of the two INTEGER value fields are then padded with leading zeroes to the same fixed length, given by the number of bytes needed to represent the order n of the cyclic subgroup used with the algorithm. For example, for P-256, the number of bytes for each integer is 32. The resulting byte string is encoded as a CBOR byte string.
361361

362362
## Encoding of Extensions {#ext-encoding}
363363

0 commit comments

Comments
 (0)