Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MGF (0.02 sec)

  1. src/crypto/rsa/pss.go

    	//     zero octets. The length of PS may be 0.
    	//
    	// 8.  Let DB = PS || 0x01 || salt; DB is an octet string of length
    	//     emLen - hLen - 1.
    
    	db[psLen] = 0x01
    	copy(db[psLen+1:], salt)
    
    	// 9.  Let dbMask = MGF(H, emLen - hLen - 1).
    	//
    	// 10. Let maskedDB = DB \xor dbMask.
    
    	mgf1XOR(db, hash, h)
    
    	// 11. Set the leftmost 8 * emLen - emBits bits of the leftmost octet in
    	//     maskedDB to zero.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/crypto/x509/x509.go

    	// The following three fields are not marked as
    	// optional because the default values specify SHA-1,
    	// which is no longer suitable for use in signatures.
    	Hash         pkix.AlgorithmIdentifier `asn1:"explicit,tag:0"`
    	MGF          pkix.AlgorithmIdentifier `asn1:"explicit,tag:1"`
    	SaltLength   int                      `asn1:"explicit,tag:2"`
    	TrailerField int                      `asn1:"optional,explicit,tag:3,default:1"`
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  3. src/crypto/x509/x509_test.go

    				Parameters: asn1.NullRawValue,
    			},
    			MGF: pkix.AlgorithmIdentifier{
    				Algorithm: oidMGF1,
    			},
    			SaltLength:   hashFunc.Size(),
    			TrailerField: 1,
    		}
    
    		mgf1Params := pkix.AlgorithmIdentifier{
    			Algorithm:  hashOID,
    			Parameters: asn1.NullRawValue,
    		}
    
    		var err error
    		params.MGF.Parameters.FullBytes, err = asn1.Marshal(mgf1Params)
    		if err != nil {
    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