- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for OAEPOptions (0.22 sec)
-
src/crypto/rsa/rsa.go
xx, ok := x.(*PublicKey) if !ok { return false } return bigIntEqual(pub.N, xx.N) && pub.E == xx.E } // OAEPOptions is an interface for passing options to OAEP decryption using the // crypto.Decrypter interface. type OAEPOptions struct { // Hash is the hash function that will be used when generating the mask. Hash crypto.Hash // MGFHash is the hash function used for MGF1.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 23.4K bytes - Viewed (0) -
api/go1.5.txt
pkg crypto/elliptic, type CurveParams struct, Name string pkg crypto/rsa, method (*PrivateKey) Decrypt(io.Reader, []uint8, crypto.DecrypterOpts) ([]uint8, error) pkg crypto/rsa, type OAEPOptions struct pkg crypto/rsa, type OAEPOptions struct, Hash crypto.Hash pkg crypto/rsa, type OAEPOptions struct, Label []uint8 pkg crypto/rsa, type PKCS1v15DecryptOptions struct pkg crypto/rsa, type PKCS1v15DecryptOptions struct, SessionKeyLen int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 30 21:14:09 UTC 2015 - 46.6K bytes - Viewed (0) -
src/crypto/rsa/rsa_test.go
priv := new(PrivateKey) priv.PublicKey = PublicKey{N: n, E: testEncryptOAEPData[0].e} priv.D = d sha1 := crypto.SHA1 sha256 := crypto.SHA256 out, err := priv.Decrypt(random, in, &OAEPOptions{MGFHash: sha1, Hash: sha256}) if err != nil { t.Errorf("error: %s", err) } else if !bytes.Equal(out, msg) { t.Errorf("bad result %#v (want %#v)", out, msg) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 12 00:55:41 UTC 2024 - 30.9K bytes - Viewed (0)