Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for EncryptOAEP (0.31 sec)

  1. src/crypto/rsa/rsa_test.go

    			t.Errorf("got:%x want:%x (%+v)", dec, msg, priv)
    		}
    	}
    
    	label := []byte("label")
    	enc, err = EncryptOAEP(sha256.New(), rand.Reader, &priv.PublicKey, msg, label)
    	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 {
    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/example_test.go

    	label := []byte("orders")
    
    	// crypto/rand.Reader is a good source of entropy for randomizing the
    	// encryption function.
    	rng := rand.Reader
    
    	ciphertext, err := rsa.EncryptOAEP(sha256.New(), rng, &test2048Key.PublicKey, secretMessage, label)
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "Error from encryption: %s\n", err)
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:52:37 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. src/crypto/rsa/rsa.go

    	}
    	m, err := bigmod.NewNat().SetBytes(plaintext, N)
    	if err != nil {
    		return nil, err
    	}
    	e := uint(pub.E)
    
    	return bigmod.NewNat().ExpShortVarTime(m, e, N).Bytes(N), nil
    }
    
    // EncryptOAEP encrypts the given message with RSA-OAEP.
    //
    // OAEP is parameterised by a hash function that is used as a random oracle.
    // Encryption and decryption of a given message must use the same hash function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"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},
    		{"ErrVerification", Var, 0},
    		{"GenerateKey", Func, 0},
    		{"GenerateMultiPrimeKey", Func, 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/rsa, func DecryptPKCS1v15(io.Reader, *PrivateKey, []uint8) ([]uint8, error)
    pkg crypto/rsa, func DecryptPKCS1v15SessionKey(io.Reader, *PrivateKey, []uint8, []uint8) error
    pkg crypto/rsa, func EncryptOAEP(hash.Hash, io.Reader, *PublicKey, []uint8, []uint8) ([]uint8, error)
    pkg crypto/rsa, func EncryptPKCS1v15(io.Reader, *PublicKey, []uint8) ([]uint8, error)
    pkg crypto/rsa, func GenerateKey(io.Reader, int) (*PrivateKey, 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