tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

index.rst (1547B)


      1 .. _mozilla_projects_nss_reference_fc_digest:
      2 
      3 FC_Digest
      4 =========
      5 
      6 `Name <#name>`__
      7 ~~~~~~~~~~~~~~~~
      8 
      9 .. container::
     10 
     11   FC_Digest - digest a block of data.
     12 
     13 `Syntax <#syntax>`__
     14 ~~~~~~~~~~~~~~~~~~~~
     15 
     16 .. container::
     17 
     18   .. code::
     19 
     20      CK_RV FC_Digest(
     21        CK_SESSION_HANDLE hSession,
     22        CK_BYTE_PTR pData,
     23        CK_ULONG usDataLen,
     24        CK_BYTE_PTR pDigest,
     25        CK_ULONG_PTR pusDigestLen
     26      );
     27 
     28 `Parameters <#parameters>`__
     29 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     30 
     31 .. container::
     32 
     33   ``hSession``
     34      [in] session handle.
     35   ``pData``
     36      [in] pointer to data block.
     37   ``usDataLen``
     38      [in] length of the data in bytes.
     39   ``pDigest``
     40      [out] pointer to location where recovered data is to be stored.
     41   ``pusDigestLen``
     42      [in, out] pointer to the maximum size of the output buffer, replaced by the length of the
     43      message digest if the operation is successful.
     44 
     45 `Description <#description>`__
     46 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     47 
     48 .. container::
     49 
     50   ``FC_Digest`` digests a message in a single operation according to the attributes of the previous
     51   call to ``FC_DigestInit``.
     52 
     53   A user may call ``FC_Digest`` without logging into the token (to assume the NSS User role).
     54 
     55 .. _return_value:
     56 
     57 `Return value <#return_value>`__
     58 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     59 
     60 .. container::
     61 
     62 `Examples <#examples>`__
     63 ~~~~~~~~~~~~~~~~~~~~~~~~
     64 
     65 .. container::
     66 
     67 .. _see_also:
     68 
     69 `See also <#see_also>`__
     70 ~~~~~~~~~~~~~~~~~~~~~~~~
     71 
     72 .. container::
     73 
     74   -  :ref:`mozilla_projects_nss_reference_fc_digestinit`, `NSC_Digest </en-US/NSC_Digest>`__