Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SessionKeyLen (0.24 sec)

  1. src/crypto/rsa/pkcs1v15.go

    // the [crypto.Decrypter] interface.
    type PKCS1v15DecryptOptions struct {
    	// SessionKeyLen is the length of the session key that is being
    	// decrypted. If not zero, then a padding error during decryption will
    	// cause a random plaintext of this length to be returned rather than
    	// an error. These alternatives happen in constant time.
    	SessionKeyLen int
    }
    
    // EncryptPKCS1v15 encrypts the given message with RSA and the padding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:21 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. src/crypto/rsa/pkcs1v15_test.go

    }
    
    func TestEncryptPKCS1v15DecrypterSessionKey(t *testing.T) {
    	for i, test := range decryptPKCS1v15SessionKeyTests {
    		plaintext, err := rsaPrivateKey.Decrypt(rand.Reader, decodeBase64(test.in), &PKCS1v15DecryptOptions{SessionKeyLen: 4})
    		if err != nil {
    			t.Fatalf("#%d: error decrypting: %s", i, err)
    		}
    		if len(plaintext) != 4 {
    			t.Fatalf("#%d: incorrect length plaintext: got %d, want 4", i, len(plaintext))
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 00:16:30 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  3. src/crypto/tls/key_agreement.go

    	}
    	// Perform constant time RSA PKCS #1 v1.5 decryption
    	preMasterSecret, err := priv.Decrypt(config.rand(), ciphertext, &rsa.PKCS1v15DecryptOptions{SessionKeyLen: 48})
    	if err != nil {
    		return nil, err
    	}
    	// We don't check the version number in the premaster secret. For one,
    	// by checking it, we would leak information about the validity of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. src/crypto/rsa/rsa.go

    		} else {
    			return decryptOAEP(opts.Hash.New(), opts.MGFHash.New(), rand, priv, ciphertext, opts.Label)
    		}
    
    	case *PKCS1v15DecryptOptions:
    		if l := opts.SessionKeyLen; l > 0 {
    			plaintext = make([]byte, l)
    			if _, err := io.ReadFull(rand, plaintext); err != nil {
    				return nil, err
    			}
    			if err := DecryptPKCS1v15SessionKey(rand, priv, ciphertext, plaintext); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. api/go1.5.txt

    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
    pkg crypto/sha512, const Size224 = 28
    pkg crypto/sha512, const Size224 ideal-int
    pkg crypto/sha512, const Size256 = 32
    pkg crypto/sha512, const Size256 ideal-int
    pkg crypto/sha512, func New512_224() hash.Hash
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"OAEPOptions", Type, 5},
    		{"OAEPOptions.Hash", Field, 5},
    		{"OAEPOptions.Label", Field, 5},
    		{"OAEPOptions.MGFHash", Field, 20},
    		{"PKCS1v15DecryptOptions", Type, 5},
    		{"PKCS1v15DecryptOptions.SessionKeyLen", Field, 5},
    		{"PSSOptions", Type, 2},
    		{"PSSOptions.Hash", Field, 4},
    		{"PSSOptions.SaltLength", Field, 2},
    		{"PSSSaltLengthAuto", Const, 2},
    		{"PSSSaltLengthEqualsHash", Const, 2},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top