- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for withCheck (0.37 sec)
-
src/crypto/rsa/pss.go
if err != nil { return nil, err } if boring.Enabled { bkey, err := boringPrivateKey(priv) if err != nil { return nil, err } // Note: BoringCrypto always does decrypt "withCheck". // (It's not just decrypt.) s, err := boring.DecryptRSANoPadding(bkey, em) if err != nil { return nil, err } return s, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 11K bytes - Viewed (0) -
src/crypto/rsa/pkcs1v15.go
} if boring.Enabled { bkey, err := boringPrivateKey(priv) if err != nil { return nil, err } return boring.SignRSAPKCS1v15(bkey, hash, hashed) } return decrypt(priv, em, withCheck) } func pkcs1v15ConstructEM(pub *PublicKey, hash crypto.Hash, hashed []byte) ([]byte, error) { // Special case: crypto.Hash(0) is used to indicate that the data is // signed directly. var prefix []byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:21 UTC 2024 - 12.8K bytes - Viewed (0) -
src/crypto/rsa/rsa.go
values.Exp.Mod(priv.D, values.Exp) values.R = new(big.Int).Set(r) values.Coeff = new(big.Int).ModInverse(r, prime) r.Mul(r, prime) } } const withCheck = true const noCheck = false // decrypt performs an RSA decryption of ciphertext into out. If check is true, // m^e is calculated and compared with ciphertext, in order to defend against
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 23.4K bytes - Viewed (0)