Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 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/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)
  3. 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)
  4. 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)
Back to top