Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MD5SHA1 (0.34 sec)

  1. src/crypto/tls/key_agreement.go

    // concatenation of an MD5 and SHA1 hash.
    func md5SHA1Hash(slices [][]byte) []byte {
    	md5sha1 := make([]byte, md5.Size+sha1.Size)
    	hmd5 := md5.New()
    	for _, slice := range slices {
    		hmd5.Write(slice)
    	}
    	copy(md5sha1, hmd5.Sum(nil))
    	copy(md5sha1[md5.Size:], sha1Hash(slices))
    	return md5sha1
    }
    
    // hashForServerKeyExchange hashes the given slices and returns their digest
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. src/crypto/tls/auth.go

    // signature algorithm negotiation.
    func legacyTypeAndHashFromPublicKey(pub crypto.PublicKey) (sigType uint8, hash crypto.Hash, err error) {
    	switch pub.(type) {
    	case *rsa.PublicKey:
    		return signaturePKCS1v15, crypto.MD5SHA1, nil
    	case *ecdsa.PublicKey:
    		return signatureECDSA, crypto.SHA1, nil
    	case ed25519.PublicKey:
    		// RFC 8422 specifies support for Ed25519 in TLS 1.0 and 1.1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. src/crypto/rsa/pkcs1v15.go

    	crypto.SHA512:    {0x30, 0x51, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03, 0x05, 0x00, 0x04, 0x40},
    	crypto.MD5SHA1:   {}, // A special TLS case which doesn't use an ASN1 prefix.
    	crypto.RIPEMD160: {0x30, 0x20, 0x30, 0x08, 0x06, 0x06, 0x28, 0xcf, 0x06, 0x03, 0x00, 0x31, 0x04, 0x14},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:21 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top