| 1 | |
|---|
| 2 | <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
|---|
| 3 | <html><head><title>Python: module xmlseclibs</title> |
|---|
| 4 | </head><body bgcolor="#f0f0f8"> |
|---|
| 5 | |
|---|
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
|---|
| 7 | <tr bgcolor="#7799ee"> |
|---|
| 8 | <td valign=bottom> <br> |
|---|
| 9 | <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>xmlseclibs</strong></big></big></font></td |
|---|
| 10 | ><td align=right valign=bottom |
|---|
| 11 | ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/dbuss/dev/bandit/rp/common/python/infocard/xmlseclibs.py">/home/dbuss/dev/bandit/rp/common/python/infocard/xmlseclibs.py</a></font></td></tr></table> |
|---|
| 12 | <p><tt># Copyright (c) 2007,2008 Novell, Inc.<br> |
|---|
| 13 | # All Rights Reserved.</tt></p> |
|---|
| 14 | <p> |
|---|
| 15 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
|---|
| 16 | <tr bgcolor="#aa55cc"> |
|---|
| 17 | <td colspan=3 valign=bottom> <br> |
|---|
| 18 | <font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> |
|---|
| 19 | |
|---|
| 20 | <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> |
|---|
| 21 | <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="Crypto.Cipher.AES.html">Crypto.Cipher.AES</a><br> |
|---|
| 22 | <a href="M2Crypto.BIO.html">M2Crypto.BIO</a><br> |
|---|
| 23 | <a href="Crypto.Cipher.DES3.html">Crypto.Cipher.DES3</a><br> |
|---|
| 24 | <a href="M2Crypto.EVP.html">M2Crypto.EVP</a><br> |
|---|
| 25 | </td><td width="25%" valign=top><a href="Crypto.Hash.RIPEMD.html">Crypto.Hash.RIPEMD</a><br> |
|---|
| 26 | <a href="M2Crypto.RSA.html">M2Crypto.RSA</a><br> |
|---|
| 27 | <a href="Crypto.Hash.SHA.html">Crypto.Hash.SHA</a><br> |
|---|
| 28 | <a href="Crypto.Hash.SHA256.html">Crypto.Hash.SHA256</a><br> |
|---|
| 29 | </td><td width="25%" valign=top><a href="M2Crypto.X509.html">M2Crypto.X509</a><br> |
|---|
| 30 | <a href="base64.html">base64</a><br> |
|---|
| 31 | <a href="event.html">event</a><br> |
|---|
| 32 | <a href="M2Crypto.m2.html">M2Crypto.m2</a><br> |
|---|
| 33 | </td><td width="25%" valign=top><a href="xml.dom.minidom.html">xml.dom.minidom</a><br> |
|---|
| 34 | <a href="M2Crypto.util.html">M2Crypto.util</a><br> |
|---|
| 35 | <a href="_xmlplus.html">_xmlplus</a><br> |
|---|
| 36 | <a href="xml.xpath.html">xml.xpath</a><br> |
|---|
| 37 | </td></tr></table></td></tr></table><p> |
|---|
| 38 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
|---|
| 39 | <tr bgcolor="#ee77aa"> |
|---|
| 40 | <td colspan=3 valign=bottom> <br> |
|---|
| 41 | <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> |
|---|
| 42 | |
|---|
| 43 | <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> |
|---|
| 44 | <td width="100%"><dl> |
|---|
| 45 | <dt><font face="helvetica, arial"><a href="xmlseclibs.html#XMLSecEnc">XMLSecEnc</a> |
|---|
| 46 | </font></dt><dt><font face="helvetica, arial"><a href="xmlseclibs.html#XMLSecurityDSig">XMLSecurityDSig</a> |
|---|
| 47 | </font></dt><dt><font face="helvetica, arial"><a href="xmlseclibs.html#XMLSecurityKey">XMLSecurityKey</a> |
|---|
| 48 | </font></dt></dl> |
|---|
| 49 | <p> |
|---|
| 50 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
|---|
| 51 | <tr bgcolor="#ffc8d8"> |
|---|
| 52 | <td colspan=3 valign=bottom> <br> |
|---|
| 53 | <font color="#000000" face="helvetica, arial"><a name="XMLSecEnc">class <strong>XMLSecEnc</strong></a></font></td></tr> |
|---|
| 54 | |
|---|
| 55 | <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
|---|
| 56 | <td width="100%">Methods defined here:<br> |
|---|
| 57 | <dl><dt><a name="XMLSecEnc-__init__"><strong>__init__</strong></a>(self, eventLog<font color="#909090">=None</font>)</dt></dl> |
|---|
| 58 | |
|---|
| 59 | <dl><dt><a name="XMLSecEnc-decryptKey"><strong>decryptKey</strong></a>(self, encKey)</dt></dl> |
|---|
| 60 | |
|---|
| 61 | <dl><dt><a name="XMLSecEnc-decryptNode"><strong>decryptNode</strong></a>(self, objKey, replace<font color="#909090">=True</font>)</dt></dl> |
|---|
| 62 | |
|---|
| 63 | <dl><dt><a name="XMLSecEnc-encryptKey"><strong>encryptKey</strong></a>(self, srcKey, rawKey, append<font color="#909090">=True</font>)</dt></dl> |
|---|
| 64 | |
|---|
| 65 | <dl><dt><a name="XMLSecEnc-encryptNode"><strong>encryptNode</strong></a>(self, objKey, replace<font color="#909090">=True</font>)</dt></dl> |
|---|
| 66 | |
|---|
| 67 | <dl><dt><a name="XMLSecEnc-locateEncryptedData"><strong>locateEncryptedData</strong></a>(self, element)</dt></dl> |
|---|
| 68 | |
|---|
| 69 | <dl><dt><a name="XMLSecEnc-locateKey"><strong>locateKey</strong></a>(self, node<font color="#909090">=None</font>)</dt></dl> |
|---|
| 70 | |
|---|
| 71 | <dl><dt><a name="XMLSecEnc-locateKeyInfo"><strong>locateKeyInfo</strong></a>(self, objBaseKey<font color="#909090">=None</font>, node<font color="#909090">=None</font>)</dt></dl> |
|---|
| 72 | |
|---|
| 73 | <dl><dt><a name="XMLSecEnc-setNode"><strong>setNode</strong></a>(self, node)</dt></dl> |
|---|
| 74 | |
|---|
| 75 | <hr> |
|---|
| 76 | Static methods defined here:<br> |
|---|
| 77 | <dl><dt><a name="XMLSecEnc-staticLocateKeyInfo"><strong>staticLocateKeyInfo</strong></a>(objBaseKey<font color="#909090">=None</font>, node<font color="#909090">=None</font>, eventLog<font color="#909090">=None</font>)</dt><dd><tt>Todo: eleminiate side effects</tt></dd></dl> |
|---|
| 78 | |
|---|
| 79 | <hr> |
|---|
| 80 | Data and other attributes defined here:<br> |
|---|
| 81 | <dl><dt><strong>Content</strong> = 'http://www.w3.org/2001/04/xmlenc#Content'</dl> |
|---|
| 82 | |
|---|
| 83 | <dl><dt><strong>Element</strong> = 'http://www.w3.org/2001/04/xmlenc#Element'</dl> |
|---|
| 84 | |
|---|
| 85 | <dl><dt><strong>URI</strong> = 3</dl> |
|---|
| 86 | |
|---|
| 87 | <dl><dt><strong>XMLENCNS</strong> = 'http://www.w3.org/2001/04/xmlenc#'</dl> |
|---|
| 88 | |
|---|
| 89 | <dl><dt><strong>template</strong> = "<xenc:EncryptedData xmlns:xenc='http://www.w3.or...rValue> </xenc:CipherData></xenc:EncryptedData>"</dl> |
|---|
| 90 | |
|---|
| 91 | </td></tr></table> <p> |
|---|
| 92 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
|---|
| 93 | <tr bgcolor="#ffc8d8"> |
|---|
| 94 | <td colspan=3 valign=bottom> <br> |
|---|
| 95 | <font color="#000000" face="helvetica, arial"><a name="XMLSecurityDSig">class <strong>XMLSecurityDSig</strong></a></font></td></tr> |
|---|
| 96 | |
|---|
| 97 | <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
|---|
| 98 | <td width="100%">Methods defined here:<br> |
|---|
| 99 | <dl><dt><a name="XMLSecurityDSig-__init__"><strong>__init__</strong></a>(self, eventLog<font color="#909090">=None</font>)</dt><dd><tt>Setup digital signature object</tt></dd></dl> |
|---|
| 100 | |
|---|
| 101 | <dl><dt><a name="XMLSecurityDSig-add509Cert"><strong>add509Cert</strong></a>(self, cert, isPEMFormat<font color="#909090">=True</font>)</dt></dl> |
|---|
| 102 | |
|---|
| 103 | <dl><dt><a name="XMLSecurityDSig-addRefInternal"><strong>addRefInternal</strong></a>(self, sinfoNode, node, algorithm, arTransforms<font color="#909090">=None</font>, options<font color="#909090">=None</font>)</dt></dl> |
|---|
| 104 | |
|---|
| 105 | <dl><dt><a name="XMLSecurityDSig-addReference"><strong>addReference</strong></a>(self, node, algorithm, arTransforms<font color="#909090">=None</font>, options<font color="#909090">=None</font>)</dt></dl> |
|---|
| 106 | |
|---|
| 107 | <dl><dt><a name="XMLSecurityDSig-addReferenceList"><strong>addReferenceList</strong></a>(self, arNodes, algorithm, arTransforms<font color="#909090">=None</font>, options<font color="#909090">=None</font>)</dt></dl> |
|---|
| 108 | |
|---|
| 109 | <dl><dt><a name="XMLSecurityDSig-appendCert"><strong>appendCert</strong></a>(self)</dt></dl> |
|---|
| 110 | |
|---|
| 111 | <dl><dt><a name="XMLSecurityDSig-appendKey"><strong>appendKey</strong></a>(self, objKey, parent<font color="#909090">=None</font>)</dt></dl> |
|---|
| 112 | |
|---|
| 113 | <dl><dt><a name="XMLSecurityDSig-appendSignature"><strong>appendSignature</strong></a>(self, parent, insertBefore<font color="#909090">=False</font>)</dt></dl> |
|---|
| 114 | |
|---|
| 115 | <dl><dt><a name="XMLSecurityDSig-calculateDigest"><strong>calculateDigest</strong></a>(self, digestAlgorithm, data)</dt></dl> |
|---|
| 116 | |
|---|
| 117 | <dl><dt><a name="XMLSecurityDSig-canonicalizeData"><strong>canonicalizeData</strong></a>(self, node, canonicalmethod, inclusiveNameSpacePrefixes<font color="#909090">=None</font>)</dt></dl> |
|---|
| 118 | |
|---|
| 119 | <dl><dt><a name="XMLSecurityDSig-canonicalizeSignedInfo"><strong>canonicalizeSignedInfo</strong></a>(self)</dt></dl> |
|---|
| 120 | |
|---|
| 121 | <dl><dt><a name="XMLSecurityDSig-createNewSignNode"><strong>createNewSignNode</strong></a>(self, name, value<font color="#909090">=None</font>)</dt></dl> |
|---|
| 122 | |
|---|
| 123 | <dl><dt><a name="XMLSecurityDSig-generate_GUID"><strong>generate_GUID</strong></a>(prefix<font color="#909090">=None</font>)</dt><dd><tt># TODO: Convert generate_GUID</tt></dd></dl> |
|---|
| 124 | |
|---|
| 125 | <dl><dt><a name="XMLSecurityDSig-getXPathObj"><strong>getXPathObj</strong></a>(self)</dt></dl> |
|---|
| 126 | |
|---|
| 127 | <dl><dt><a name="XMLSecurityDSig-locateKey"><strong>locateKey</strong></a>(self, node<font color="#909090">=None</font>)</dt></dl> |
|---|
| 128 | |
|---|
| 129 | <dl><dt><a name="XMLSecurityDSig-locateSignature"><strong>locateSignature</strong></a>(self, objDoc)</dt></dl> |
|---|
| 130 | |
|---|
| 131 | <dl><dt><a name="XMLSecurityDSig-processRefNode"><strong>processRefNode</strong></a>(self, refNode)</dt></dl> |
|---|
| 132 | |
|---|
| 133 | <dl><dt><a name="XMLSecurityDSig-processTransforms"><strong>processTransforms</strong></a>(self, signatureNode, signedDataNode)</dt></dl> |
|---|
| 134 | |
|---|
| 135 | <dl><dt><a name="XMLSecurityDSig-setCanonicalMethod"><strong>setCanonicalMethod</strong></a>(self, method)</dt></dl> |
|---|
| 136 | |
|---|
| 137 | <dl><dt><a name="XMLSecurityDSig-sign"><strong>sign</strong></a>(self, objKey)</dt></dl> |
|---|
| 138 | |
|---|
| 139 | <dl><dt><a name="XMLSecurityDSig-signData"><strong>signData</strong></a>(self, objKey, data)</dt></dl> |
|---|
| 140 | |
|---|
| 141 | <dl><dt><a name="XMLSecurityDSig-validateDigest"><strong>validateDigest</strong></a>(self, refNode, data, dataObject)</dt></dl> |
|---|
| 142 | |
|---|
| 143 | <dl><dt><a name="XMLSecurityDSig-validateReference"><strong>validateReference</strong></a>(self)</dt></dl> |
|---|
| 144 | |
|---|
| 145 | <dl><dt><a name="XMLSecurityDSig-verify"><strong>verify</strong></a>(self, objKey)</dt></dl> |
|---|
| 146 | |
|---|
| 147 | <hr> |
|---|
| 148 | Static methods defined here:<br> |
|---|
| 149 | <dl><dt><a name="XMLSecurityDSig-get509XCert"><strong>get509XCert</strong></a>(cert, isPEMFormat<font color="#909090">=True</font>)</dt><dd><tt>convert from PEM to data</tt></dd></dl> |
|---|
| 150 | |
|---|
| 151 | <dl><dt><a name="XMLSecurityDSig-get509XCertAsPEM"><strong>get509XCertAsPEM</strong></a>(body)</dt></dl> |
|---|
| 152 | |
|---|
| 153 | <hr> |
|---|
| 154 | Data and other attributes defined here:<br> |
|---|
| 155 | <dl><dt><strong>C14N</strong> = 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315'</dl> |
|---|
| 156 | |
|---|
| 157 | <dl><dt><strong>C14N_COMMENTS</strong> = 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments'</dl> |
|---|
| 158 | |
|---|
| 159 | <dl><dt><strong>EXC_C14N</strong> = 'http://www.w3.org/2001/10/xml-exc-c14n#'</dl> |
|---|
| 160 | |
|---|
| 161 | <dl><dt><strong>EXC_C14N_COMMENTS</strong> = 'http://www.w3.org/2001/10/xml-exc-c14n#WithComments'</dl> |
|---|
| 162 | |
|---|
| 163 | <dl><dt><strong>RIPEMD160</strong> = 'http://www.w3.org/2001/04/xmlenc#ripemd160'</dl> |
|---|
| 164 | |
|---|
| 165 | <dl><dt><strong>SHA1</strong> = 'http://www.w3.org/2000/09/xmldsig#sha1'</dl> |
|---|
| 166 | |
|---|
| 167 | <dl><dt><strong>SHA256</strong> = 'http://www.w3.org/2001/04/xmlenc#sha256'</dl> |
|---|
| 168 | |
|---|
| 169 | <dl><dt><strong>SHA512</strong> = 'http://www.w3.org/2001/04/xmlenc#sha512'</dl> |
|---|
| 170 | |
|---|
| 171 | <dl><dt><strong>XMLDSIGNS</strong> = 'http://www.w3.org/2000/09/xmldsig#'</dl> |
|---|
| 172 | |
|---|
| 173 | <dl><dt><strong>template</strong> = '<ds:Signature xmlns:ds="http://www.w3.org/2000/0...gnatureMethod /> </ds:SignedInfo></ds:Signature>'</dl> |
|---|
| 174 | |
|---|
| 175 | </td></tr></table> <p> |
|---|
| 176 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
|---|
| 177 | <tr bgcolor="#ffc8d8"> |
|---|
| 178 | <td colspan=3 valign=bottom> <br> |
|---|
| 179 | <font color="#000000" face="helvetica, arial"><a name="XMLSecurityKey">class <strong>XMLSecurityKey</strong></a></font></td></tr> |
|---|
| 180 | |
|---|
| 181 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
|---|
| 182 | <td colspan=2><tt>Class for encrypting/decrypting data, and remembering information about .<br> |
|---|
| 183 | the methods and keys for doing so.<br> |
|---|
| 184 | <br> |
|---|
| 185 | Hides from the caller the details of which library (openssl or mcrypt) is <br> |
|---|
| 186 | used for a particular cipher.<br> </tt></td></tr> |
|---|
| 187 | <tr><td> </td> |
|---|
| 188 | <td width="100%">Methods defined here:<br> |
|---|
| 189 | <dl><dt><a name="XMLSecurityKey-__init__"><strong>__init__</strong></a>(self, type, eventLog<font color="#909090">=None</font>, params<font color="#909090">=None</font>)</dt></dl> |
|---|
| 190 | |
|---|
| 191 | <dl><dt><a name="XMLSecurityKey-decryptData"><strong>decryptData</strong></a>(self, data)</dt><dd><tt>Decrypt data using the configured library and cipher<br> |
|---|
| 192 | <br> |
|---|
| 193 | returns decrypted data on success, on failure returns None and logs events.</tt></dd></dl> |
|---|
| 194 | |
|---|
| 195 | <dl><dt><a name="XMLSecurityKey-decryptMcrypt"><strong>decryptMcrypt</strong></a>(self, data)</dt><dd><tt>Decrypt using the mcrypt library <br> |
|---|
| 196 | <br> |
|---|
| 197 | This function should not be called directly, rather call decryptData and<br> |
|---|
| 198 | let that function switch based on the configured library.<br> |
|---|
| 199 | <br> |
|---|
| 200 | Todo:: currently only supports MCRYPT_MODE_CBC <br> |
|---|
| 201 | <br> |
|---|
| 202 | returns None on failure, decrypted data on success. No events logged</tt></dd></dl> |
|---|
| 203 | |
|---|
| 204 | <dl><dt><a name="XMLSecurityKey-decryptOpenSSL"><strong>decryptOpenSSL</strong></a>(self, data)</dt><dd><tt>Decrypt using the openssl library functions.<br> |
|---|
| 205 | <br> |
|---|
| 206 | This function should not be called directly, rather call decryptData and<br> |
|---|
| 207 | let that function switch based on the configured library.<br> |
|---|
| 208 | <br> |
|---|
| 209 | returns None & events logged on failure, decrypted data on success.</tt></dd></dl> |
|---|
| 210 | |
|---|
| 211 | <dl><dt><a name="XMLSecurityKey-encryptData"><strong>encryptData</strong></a>(self, data)</dt><dd><tt>Encrypt data using the configured library and cipher<br> |
|---|
| 212 | <br> |
|---|
| 213 | returns encrypted data on success, on failure returns None and logs events.</tt></dd></dl> |
|---|
| 214 | |
|---|
| 215 | <dl><dt><a name="XMLSecurityKey-encryptMcrypt"><strong>encryptMcrypt</strong></a>(self, data)</dt><dd><tt>Encrypted using the mcrypt library<br> |
|---|
| 216 | <br> |
|---|
| 217 | This function should not be called directly, rather call encryptData and<br> |
|---|
| 218 | let that function switch based on the configured library.<br> |
|---|
| 219 | <br> |
|---|
| 220 | Todo::<br> |
|---|
| 221 | Not currently called, appears to be incomplete, possibly containing some<br> |
|---|
| 222 | phpisms</tt></dd></dl> |
|---|
| 223 | |
|---|
| 224 | <dl><dt><a name="XMLSecurityKey-encryptOpenSSL"><strong>encryptOpenSSL</strong></a>(self, data)</dt><dd><tt>Encrypt using the openssl library functions.<br> |
|---|
| 225 | <br> |
|---|
| 226 | This function should not be called directly, rather call encryptData and<br> |
|---|
| 227 | let that function switch based on the configured library.<br> |
|---|
| 228 | <br> |
|---|
| 229 | returns None & events logged on failure, encrypted data on success.</tt></dd></dl> |
|---|
| 230 | |
|---|
| 231 | <dl><dt><a name="XMLSecurityKey-getAlgorith"><strong>getAlgorith</strong></a>(self)</dt><dd><tt>Returns a string with currently configured encrypt/decrypt method.</tt></dd></dl> |
|---|
| 232 | |
|---|
| 233 | <dl><dt><a name="XMLSecurityKey-loadKey"><strong>loadKey</strong></a>(self, key, passPhrase<font color="#909090">=None</font>, isFile<font color="#909090">=False</font>, isCert<font color="#909090">=True</font>)</dt><dd><tt>setup key information in object<br> |
|---|
| 234 | <br> |
|---|
| 235 | This function fails if key can't be loaded succesfully<br> |
|---|
| 236 | Returns None on success and failure, reports errors to the configured event log.</tt></dd></dl> |
|---|
| 237 | |
|---|
| 238 | <dl><dt><a name="XMLSecurityKey-passphrase_callback"><strong>passphrase_callback</strong></a>(*args)</dt><dd><tt>Attempt to get passphrase protected certs working<br> |
|---|
| 239 | <br> |
|---|
| 240 | Todo: debug and fix.</tt></dd></dl> |
|---|
| 241 | |
|---|
| 242 | <dl><dt><a name="XMLSecurityKey-serializeKey"><strong>serializeKey</strong></a>(self, parent)</dt><dd><tt>serialize a key<br> |
|---|
| 243 | <br> |
|---|
| 244 | Todo:: implement</tt></dd></dl> |
|---|
| 245 | |
|---|
| 246 | <dl><dt><a name="XMLSecurityKey-signData"><strong>signData</strong></a>(self, data)</dt><dd><tt>Sign data using the configured library and cipher<br> |
|---|
| 247 | <br> |
|---|
| 248 | returns signature on success, on failure returns None and logs events.</tt></dd></dl> |
|---|
| 249 | |
|---|
| 250 | <dl><dt><a name="XMLSecurityKey-signOpenSSL"><strong>signOpenSSL</strong></a>(self, data)</dt><dd><tt>Sign data using openssl library<br> |
|---|
| 251 | <br> |
|---|
| 252 | Todo:: log events.<br> |
|---|
| 253 | <br> |
|---|
| 254 | returns signed data on success, None and no events logged on failure</tt></dd></dl> |
|---|
| 255 | |
|---|
| 256 | <dl><dt><a name="XMLSecurityKey-verifyOpenSSL"><strong>verifyOpenSSL</strong></a>(self, data, signature)</dt><dd><tt>Verify signature on signed data usins openssl library.<br> |
|---|
| 257 | <br> |
|---|
| 258 | Todo:: log events.</tt></dd></dl> |
|---|
| 259 | |
|---|
| 260 | <dl><dt><a name="XMLSecurityKey-verifySignature"><strong>verifySignature</strong></a>(self, data, signature)</dt><dd><tt>Validates a signature using the configured library and cipher<br> |
|---|
| 261 | <br> |
|---|
| 262 | returns on failure returns None and logs events.</tt></dd></dl> |
|---|
| 263 | |
|---|
| 264 | <hr> |
|---|
| 265 | Static methods defined here:<br> |
|---|
| 266 | <dl><dt><a name="XMLSecurityKey-convertRSA"><strong>convertRSA</strong></a>(modulus, exponent)</dt><dd><tt>Convert a modulus and exponent into an ASN publicKeyInfo <br> |
|---|
| 267 | <br> |
|---|
| 268 | Modulus and Exponent must already be base64 decoded</tt></dd></dl> |
|---|
| 269 | |
|---|
| 270 | <dl><dt><a name="XMLSecurityKey-makeAsnSegment"><strong>makeAsnSegment</strong></a>(type, instring)</dt></dl> |
|---|
| 271 | |
|---|
| 272 | <hr> |
|---|
| 273 | Data and other attributes defined here:<br> |
|---|
| 274 | <dl><dt><strong>AES128_CBC</strong> = 'http://www.w3.org/2001/04/xmlenc#aes128-cbc'</dl> |
|---|
| 275 | |
|---|
| 276 | <dl><dt><strong>AES192_CBC</strong> = 'http://www.w3.org/2001/04/xmlenc#aes192-cbc'</dl> |
|---|
| 277 | |
|---|
| 278 | <dl><dt><strong>AES256_CBC</strong> = 'http://www.w3.org/2001/04/xmlenc#aes256-cbc'</dl> |
|---|
| 279 | |
|---|
| 280 | <dl><dt><strong>DSA_SHA1</strong> = 'http://www.w3.org/2000/09/xmldsig#dsa-sha1'</dl> |
|---|
| 281 | |
|---|
| 282 | <dl><dt><strong>RSA_1_5</strong> = 'http://www.w3.org/2001/04/xmlenc#rsa-1_5'</dl> |
|---|
| 283 | |
|---|
| 284 | <dl><dt><strong>RSA_OAEP_MGF1P</strong> = 'http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p'</dl> |
|---|
| 285 | |
|---|
| 286 | <dl><dt><strong>RSA_SHA1</strong> = 'http://www.w3.org/2000/09/xmldsig#rsa-sha1'</dl> |
|---|
| 287 | |
|---|
| 288 | <dl><dt><strong>TRIPLEDES_CBC</strong> = 'http://www.w3.org/2001/04/xmlenc#tripledes-cbc'</dl> |
|---|
| 289 | |
|---|
| 290 | </td></tr></table></td></tr></table><p> |
|---|
| 291 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
|---|
| 292 | <tr bgcolor="#eeaa77"> |
|---|
| 293 | <td colspan=3 valign=bottom> <br> |
|---|
| 294 | <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> |
|---|
| 295 | |
|---|
| 296 | <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> |
|---|
| 297 | <td width="100%"><dl><dt><a name="-report_event"><strong>report_event</strong></a>(eventLog, text, severity<font color="#909090">=0</font>, tag<font color="#909090">=None</font>)</dt><dd><tt>module level function for either remembering the event or throwing an<br> |
|---|
| 298 | exception if eventlonging is not configured.</tt></dd></dl> |
|---|
| 299 | </td></tr></table> |
|---|
| 300 | </body></html> |
|---|