Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkSignature (0.17 sec)

  1. src/crypto/x509/x509.go

    			if err != nil {
    				return nil, err
    			}
    		}
    	}
    
    	return out, nil
    }
    
    // CheckSignature reports whether the signature on c is valid.
    func (c *CertificateRequest) CheckSignature() error {
    	return checkSignature(c.SignatureAlgorithm, c.RawTBSCertificateRequest, c.Signature, c.PublicKey, true)
    }
    
    // RevocationListEntry represents an entry in the revokedCertificates
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  2. src/crypto/x509/x509_test.go

    	if der == nil {
    		t.Fatal("Failed to find PEM block")
    	}
    
    	cert, err := ParseCertificate(der.Bytes)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if err = cert.CheckSignature(ECDSAWithSHA256, nil, nil); err == nil {
    		t.Fatal("CheckSignature unexpectedly return no error")
    	}
    
    	const expectedSubstring = " but have public key of type "
    	if !strings.Contains(err.Error(), expectedSubstring) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
Back to top