@@ -291,9 +291,6 @@ func TestSignerSign(t *testing.T) {
291291 pkp384 , err := ecdsa .GenerateKey (elliptic .P384 (), rand .Reader )
292292 require .NoError (t , err )
293293
294- pk512 , err := rsa .GenerateKey (rand .Reader , 512 ) //nolint:gosec
295- require .NoError (t , err )
296-
297294 blockPrivate , _ := pem .Decode ([]byte (testPrivKeyRSAPSS ))
298295 assert .NotNil (t , blockPrivate , "could not decode test private key pem" )
299296
@@ -415,31 +412,6 @@ func TestSignerSign(t *testing.T) {
415412 require .Error (t , err )
416413 },
417414 },
418- {
419- uc : "failed signing payload" ,
420- key : Key {KeyID : "test" , Algorithm : RsaPkcs1v15Sha512 , Key : pk512 },
421- opts : []SignerOption {
422- WithComponents ("@authority" ),
423- },
424- msg : & Message {
425- Method : http .MethodPost ,
426- Authority : "example.com" ,
427- URL : testURL ,
428- Header : http.Header {
429- "Host" : []string {"example.com" },
430- "Date" : []string {"Tue, 20 Apr 2021 02:07:55 GMT" },
431- "Content-Type" : []string {"application/json" },
432- "Content-Digest" : []string {"sha-512=:WZDPaVn/7XgHaAy8pmojAkGWoRx2UFChF41A2svX+TaPm+AbwAgBWnrIiYllu7BNNyealdVLvRwEmTHWXvJwew==:" },
433- "Content-Length" : []string {"18" },
434- },
435- IsRequest : true ,
436- },
437- assert : func (t * testing.T , err error , _ http.Header ) {
438- t .Helper ()
439-
440- require .Error (t , err )
441- },
442- },
443415 {
444416 // https://www.rfc-editor.org/rfc/rfc9421.html#name-minimal-signature-using-rsa
445417 uc : "B.2.1. minimal signature using rsa-pss-sha512" ,
0 commit comments