Home | Trees | Indices | Help |
---|
|
object --+ | AlgorithmID
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
string) |
|
||
[(level, string),...] |
|
||
(mechanism, params) |
|
||
SecItem |
|
|
|||
id_oid algorithm id OID as SecItem |
|||
id_str algorithm id as string description |
|||
id_tag algorithm id TAG as a enumerated constant (e.g. |
|||
parameters algorithm parameters as SecItem |
|
|
|
|
|
Formats the object into a sequence of lines with indent level information. The return value is a list where each list item is a tuple. The first item in the tuple is an integer representing the indentation level for that line. Any remaining items in the tuple are strings to be output on that line. The output of this function can be formatted into a single string by calling nss.nss.indented\_format(), e.g.: print indented_format(obj.format_lines()) The reason this function returns a tuple as opposed to an single indented string is to support other text formatting systems such as GUI's with indentation controls. See nss.nss.indented\_format() for a complete explanation.
|
This function generates the parameters needed for nss.create\_context\_by\_sym\_key(), for example: alg_id = nss.create_pbev2_algorithm_id() sym_key = slot.pbe_key_gen(alg_id, password) mechanism, params = alg_id.get_pbe_crypto_mechanism(sym_key) encrypt_ctx = nss.create_context_by_sym_key(mechanism, nss.CKA_ENCRYPT, sym_key, params)
|
|
|
id_tagalgorithm id TAG as a enumerated constant (e.g. tag) |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |