Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DecryptOAEP (1.62 sec)

  1. src/crypto/rsa/rsa_test.go

    	if err == ErrMessageTooLong {
    		t.Log("key too small for EncryptOAEP")
    	} else if err != nil {
    		t.Errorf("EncryptOAEP: %v", err)
    	}
    	if err == nil {
    		dec, err := DecryptOAEP(sha256.New(), nil, priv, enc, label)
    		if err != nil {
    			t.Errorf("DecryptOAEP: %v", err)
    		}
    		if !bytes.Equal(dec, msg) {
    			t.Errorf("got:%x want:%x (%+v)", dec, msg, priv)
    		}
    	}
    
    	hash := sha256.Sum256(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)
  2. src/crypto/rsa/rsa.go

    //
    // The label parameter must match the value given when encrypting. See
    // [EncryptOAEP] for details.
    func DecryptOAEP(hash hash.Hash, random io.Reader, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error) {
    	return decryptOAEP(hash, hash, random, priv, ciphertext, label)
    }
    
    func decryptOAEP(hash, mgfHash hash.Hash, random io.Reader, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. src/crypto/rsa/example_test.go

    	label := []byte("orders")
    
    	plaintext, err := rsa.DecryptOAEP(sha256.New(), nil, test2048Key, ciphertext, label)
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "Error from decryption: %s\n", err)
    		return
    	}
    
    	fmt.Printf("Plaintext: %s\n", plaintext)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:52:37 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*PublicKey).Equal", Method, 15},
    		{"(*PublicKey).Size", Method, 11},
    		{"CRTValue", Type, 0},
    		{"CRTValue.Coeff", Field, 0},
    		{"CRTValue.Exp", Field, 0},
    		{"CRTValue.R", Field, 0},
    		{"DecryptOAEP", Func, 0},
    		{"DecryptPKCS1v15", Func, 0},
    		{"DecryptPKCS1v15SessionKey", Func, 0},
    		{"EncryptOAEP", Func, 0},
    		{"EncryptPKCS1v15", Func, 0},
    		{"ErrDecryption", Var, 0},
    		{"ErrMessageTooLong", Var, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg crypto/rc4, method (*Cipher) XORKeyStream([]uint8, []uint8)
    pkg crypto/rc4, method (KeySizeError) Error() string
    pkg crypto/rc4, type Cipher struct
    pkg crypto/rc4, type KeySizeError int
    pkg crypto/rsa, func DecryptOAEP(hash.Hash, io.Reader, *PrivateKey, []uint8, []uint8) ([]uint8, error)
    pkg crypto/rsa, func DecryptPKCS1v15(io.Reader, *PrivateKey, []uint8) ([]uint8, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top