autodoc.git
/
traditional.xml
version
»
Context lines:
10
20
40
80
file
none
3
autodoc.git/traditional.xml:100278:
</text></doc> <method name='_equal'><modifiers><protected/></modifiers> <arguments><argument name='other'><type><mixed/></type></argument></arguments> <returntype><int><min>0</min><max>1</max></int></returntype> </method> </docgroup> <docgroup homogen-name='create' homogen-type='method'><doc><text><p>Can be initialized with a mapping with the elements n, e, d, p and q.</p> <p> The mapping can either contain integer values, or be an <rfc>7517</rfc> JWK-style mapping with <tt>kty</tt> set to <expr>"RSA"</expr> and contain <ref resolved='predef::MIME.encode_base64url'>MIME.encode_base64url()</ref>-encoded values.</p>
-
</text></doc>
+
</text><
group><seealso
/
><text><p><ref resolved='predef::Crypto.RSA.LowState.jwk'>jwk()</ref></p>
+
</text></group></
doc>
<method name='create'><modifiers><protected/></modifiers> <arguments><argument name='params'><type><or><mapping><indextype><string><min>0</min><max>255</max></string></indextype><valuetype><or><object resolved='predef::Gmp.mpz'>Gmp.mpz</object><int/><string><min>0</min><max>127</max></string></or></valuetype></mapping><void/></or></type></argument></arguments> <returntype><void/></returntype> </method> </docgroup> <docgroup homogen-name='generate_key' homogen-type='method'><doc><text><p>Generate a valid RSA key pair with the size <ref resolved='predef::Crypto.RSA.LowState.generate_key.bits'>bits</ref> using the random function set with <ref resolved='predef::Crypto.RSA.LowState.set_random'>set_random()</ref>. The public exponent <ref resolved='predef::Crypto.RSA.LowState.generate_key.e'>e</ref> will be used, which defaults to 65537. Keys must be at least 89 bits.</p> </text></doc>
autodoc.git/traditional.xml:100341:
</docgroup> <docgroup homogen-name='jwa' homogen-type='method'><doc><text><p>Get the JWS algorithm identifier for a hash.</p> </text><group><returns/><text><p>Returns <expr>0</expr> (zero) on failure.</p> </text></group><group><seealso/><text><p><rfc>7518:3.1</rfc></p> </text></group></doc> <method name='jwa'> <arguments><argument name='hash'><type><object resolved='predef::Crypto.Hash'>.Hash</object></type></argument></arguments> <returntype><string><min>0</min><max>127</max></string></returntype> </method> </docgroup>
+
<docgroup homogen-name='jwk' homogen-type='method'><doc><text><p>Generate a JWK-style mapping of the object.</p>
+
</text><group><param name='private_key'/><text><p>If true, include the private key in the result.
+
Note that if the private key isn't known, the function
+
will fail (and return <expr>0</expr>).</p>
+
</text></group><group><returns/><text><p>Returns a JWK-style mapping on success, and <expr>0</expr> (zero)
+
on failure.</p>
+
</text></group><group><seealso/><text><p><ref resolved='predef::Crypto.RSA.LowState.create'>create()</ref>, <ref resolved='predef::Web.encode_jwk'>Web.encode_jwk()</ref>, <rfc>7517:4</rfc>, <rfc>7518:6.3</rfc></p>
+
</text></group></doc>
+
<method name='jwk'>
+
<arguments><argument name='private_key'><type><or><int><min>0</min><max>1</max></int><void/></or></type></argument></arguments>
+
<returntype><mapping><indextype><string><min>0</min><max>127</max></string></indextype><valuetype><string><min>0</min><max>127</max></string></valuetype></mapping></returntype>
+
</method>
+
</docgroup>
<docgroup homogen-name='key_size' homogen-type='method'><doc><text><p>Returns the size of the key in terms of number of bits.</p> </text></doc> <method name='key_size'> <arguments/> <returntype><int><min>0</min><max/></int></returntype> </method> </docgroup> <docgroup homogen-name='name' homogen-type='method'><doc><text><p>Returns the string <expr>"RSA"</expr>.</p> </text></doc> <method name='name'>