A master key is key data material from which other keys are derived. Depending on the protocol and cipher suite used, the master key can be from 5 to 48 bytes in length. For the RSA/Schannel CSP, the master key is created by the client-side and transferred to the server in an RSA envelope. For a Diffie-Hellman/Schannel CSP, the master key is created by performing a Diffie-Hellman key exchange.
Code for creating and exchanging master keys is demonstrated in:
- Diffie-Hellman Client Code for Creating the Master Key
- Diffie-Hellman Server Code for Creating the Master Key
- RSA Client Code for Creating the Master Key
- RSA Server Code for Creating the Master Key
- Specifying the Algorithms
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
