Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DecrypterOpts (0.1 sec)

  1. src/go/internal/gcimporter/gcimporter_test.go

    	{"context.Context", "type Context interface{Deadline() (deadline time.Time, ok bool); Done() <-chan struct{}; Err() error; Value(key any) any}"},
    	{"crypto.Decrypter", "type Decrypter interface{Decrypt(rand io.Reader, msg []byte, opts DecrypterOpts) (plaintext []byte, err error); Public() PublicKey}"},
    	{"encoding.BinaryMarshaler", "type BinaryMarshaler interface{MarshalBinary() (data []byte, err error)}"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. src/crypto/rsa/rsa.go

    // *[PKCS1v15DecryptOptions] then PKCS #1 v1.5 decryption is performed. Otherwise
    // opts must have type *[OAEPOptions] and OAEP decryption is done.
    func (priv *PrivateKey) Decrypt(rand io.Reader, ciphertext []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error) {
    	if opts == nil {
    		return DecryptPKCS1v15(rand, priv, ciphertext)
    	}
    
    	switch opts := opts.(type) {
    	case *OAEPOptions:
    		if opts.MGFHash == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top