computeKey(
pub xml.CryptoKey,
url STRING )
RETURNS xml.CryptoKey
|
Computes the shared secret based on the given modulus, generator,
the private key, and the other peer's public key. The returned key can be any symmetric/HMAC or
symmetric/encryption key type. It can be used for symmetric signature or symmetric
encryption. |
loadBIN(
filename STRING )
|
Loads a symmetric or HMAC key from a file in raw
format. |
loadDER(
filename STRING )
|
Loads an asymmetric DSA key, an asymmetric RSA key, or
Diffie-Hellman parameters from a file in DER format. |
loadFromString(
str STRING )
|
Loads the given key in BASE64 string format into a CryptoKey
object. |
loadPEM(
filename STRING )
|
Loads an asymmetric DSA key, an asymmetric RSA key, or
Diffie-Hellman parameters from a file in PEM format. |
loadPrivate(
doc xml.DomDocument )
|
Loads the private asymmetric RSA key from the given XML
document. |
loadPublic(
doc xml.DomDocument )
|
Loads the public part of an asymmetric RSA or DSA CryptoKey object,
or the parameters and the public key of the Diffie-Hellman object from a XML
document. |
loadPublicFromString(
str STRING )
|
Populate the current CryptoKey object with the passed public
key. |
savePrivate()
RETURNS xml.DomDocument
|
Saves the private key part of an asymmetric RSA CryptoKey object
into a XML document according to the XKMS2.0
specification. |
savePublic()
RETURNS xml.DomDocument
|
Saves the public part of an asymmetric RSA or DSA CryptoKey object,
or the parameters and the public key of the Diffie-Hellman object into a XML
document. |
savePublicToString()
RETURNS STRING
|
Save the current xml.CryptoKey 's public part in
the returned base64 string. |
saveToString()
RETURNS STRING
|
Saves the CryptoKey object into a BASE64 string
format. |