- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for PSSMaxSaltLength (0.47 sec)
-
lib/fips140/v1.0.0.zip
hash.Write(salt) h0 := hash.Sum(nil) // 14. If H = H', output "consistent." Otherwise, output "inconsistent." if !bytes.Equal(h0, h) { // TODO: constant time? return ErrVerification } return nil } // PSSMaxSaltLength returns the maximum salt length for a given public key and // hash function. func PSSMaxSaltLength(pub *PublicKey, hash fips140.Hash) (int, error) { saltLength := (pub.N.BitLen()-1+7)/8 - 2 - hash.Size() if saltLength < 0 { return 0, ErrMessageTooLong } // FIPS 186-5, Section 5.4(g): "the length...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)