Can One Public Key be Used to Encrypt and Decrypt Data during the SSL Handshake?

前端 未结 3 620
花落未央
花落未央 2020-12-09 06:33

When a server sends a Certificate message to a client, the public key in the server\'s certificate will be used to verify server’s identity(decryption with the public key).<

3条回答
  •  鱼传尺愫
    2020-12-09 06:38

    In a PPK algorithm like RSA, you have two different communication channels. Information encrypted using the public key is only readable to the possessor of the private key, and information encrypted using the private key is only readable to the possessor of the public key.

    In fact, the selection of which half of the pair is "public" is completely arbitrary.

    Now, in practice this doesn't much matter; the whole world has access to the public key, so encrypting something with the private part wouldn't do anything to secure it. But you can use this for authentication: since only one holder has the private key, if a message is validly encrypted using it, then the private-key holder must have been the author.

    That's why your book doesn't say that the private key is used for encryption: because it's used for integrity, not for confidentiality, as any message sealed using it would be readable to anyone possessing the non-secret public half. While the integrity validation mechanism is technically encryption (it is encipherment using modular exponentiation), it would be confusing to mention this in a foundations-of-cryptography context as it's not what people think when they hear "encryption" - they think "privacy".

提交回复
热议问题