Link to this page
Print this page
Parent topic
:
The CryptoKey class
XML security classes
/
The CryptoKey class
Examples
Examples using the
xml.CryptoKey
class.
Loading an asymmetric RSA key
Generating a symmetric AES256 key
Setting a HMAC key
Deriving a HMAC key
Computing the shared secret with Diffie-Hellman
Load the Diffie-Hellman parameters from a PEM file, the other peer's public key from an XML file and compute the shared secret.