- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for firstByteIsZero (0.09 sec)
-
lib/fips140/v1.0.0-c2097c7c.zip
checkApprovedHash(hash) k := priv.pub.Size() if len(ciphertext) > k || k < hash.Size()*2+2 { return nil, ErrDecryption } em, err := decrypt(priv, ciphertext, noCheck) if err != nil { return nil, err } hash.Reset() hash.Write(label) lHash := hash.Sum(nil) firstByteIsZero := subtle.ConstantTimeByteEq(em[0], 0) seed := em[1 : hash.Size()+1] db := em[hash.Size()+1:] mgf1XOR(seed, mgfHash, db) mgf1XOR(db, mgfHash, seed) lHash2 := db[0:hash.Size()] // We have to validate the plaintext in constant time in order to avoid...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Sep 25 19:53:19 UTC 2025 - 642.7K bytes - Viewed (0) -
lib/fips140/v1.1.0-rc1.zip
checkApprovedHash(hash) k := priv.pub.Size() if len(ciphertext) > k || k < hash.Size()*2+2 { return nil, ErrDecryption } em, err := decrypt(priv, ciphertext, noCheck) if err != nil { return nil, err } hash.Reset() hash.Write(label) lHash := hash.Sum(nil) firstByteIsZero := constanttime.ByteEq(em[0], 0) seed := em[1 : hash.Size()+1] db := em[hash.Size()+1:] mgf1XOR(seed, mgfHash, db) mgf1XOR(db, mgfHash, seed) lHash2 := db[0:hash.Size()] // We have to validate the plaintext in constant time in order to avoid //...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Dec 11 16:27:41 UTC 2025 - 663K bytes - Viewed (0)