Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for EMSAPSSVerify (0.09 sec)

  1. src/crypto/rsa/pss.go

    	//     maskedDB to zero.
    
    	db[0] &= 0xff >> (8*emLen - emBits)
    
    	// 12. Let EM = maskedDB || H || 0xbc.
    	em[emLen-1] = 0xbc
    
    	// 13. Output EM.
    	return em, nil
    }
    
    func emsaPSSVerify(mHash, em []byte, emBits, sLen int, hash hash.Hash) error {
    	// See RFC 8017, Section 9.1.2.
    
    	hLen := hash.Size()
    	if sLen == PSSSaltLengthEqualsHash {
    		sLen = hLen
    	}
    	emLen := (emBits + 7) / 8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top