Skip to content

DSA vs. wycheproof #274

@karel-m

Description

@karel-m

Again https://github.com/google/wycheproof/tree/master/testvectors

From dsa_test.json we fail the following tests (grep the json for tcId value):

#   Failed test 'type: DSAVer/SHA224, tcId: 12, comment: Legacy:ASN encoding of s misses leading 0, result: acceptable'
#   Failed test 'type: DSAVer/SHA224, tcId: 126, comment: Modified r or s, e.g. by adding or subtracting the order of the group, result: invalid'
#   Failed test 'type: DSAVer/SHA224, tcId: 128, comment: Modified r or s, e.g. by adding or subtracting the order of the group, result: invalid'
#   Failed test 'type: DSAVer/SHA224, tcId: 14, comment: BER:long form encoding of length, result: acceptable'
#   Failed test 'type: DSAVer/SHA224, tcId: 17, comment: BER:length contains leading 0, result: acceptable'
#   Failed test 'type: DSAVer/SHA224, tcId: 19, comment: BER:indefinite length, result: acceptable'
#   Failed test 'type: DSAVer/SHA224, tcId: 20, comment: BER:prepending 0's to integer, result: acceptable'
#   Failed test 'type: DSAVer/SHA224, tcId: 53, comment: appending 0's to sequence, result: invalid'
#   Failed test 'type: DSAVer/SHA224, tcId: 55, comment: appending unused 0's, result: invalid'
#   Failed test 'type: DSAVer/SHA224, tcId: 57, comment: appending null value, result: invalid'
#   Failed test 'type: DSAVer/SHA224, tcId: 97, comment: append empty sequence, result: invalid'

On top of that the following test vector seems to loop for ever:

{
  "comment" : "Signatures with special case values for r and s.",
  "message" : "48656c6c6f",
  "result" : "invalid",
  "sig" : "3022020101021dff450969597a870820211805983688387a10cd4dcc451a7f3f432a96a3",
  "tcId" : 139
}

I'll investigate more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions