VirtualBox

Changeset 73819 in vbox


Ignore:
Timestamp:
Aug 22, 2018 9:02:04 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124509
Message:

iprt/crypto: some documentation updates. bugref:9152

Location:
trunk/include/iprt/crypto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/crypto/digest.h

    r73705 r73819  
    206206 */
    207207RTDECL(int)             RTCrDigestClone(PRTCRDIGEST phDigest, RTCRDIGEST hSrc);
     208/**
     209 * Resets the digest to start calculating a new digest.
     210 */
    208211RTDECL(int)             RTCrDigestReset(RTCRDIGEST hDigest);
     212
     213/**
     214 * Retains a references to the digest.
     215 *
     216 * @returns New reference count. UINT32_MAX if invalid handle.
     217 * @param   hDigest     Handle to the digest.
     218 */
    209219RTDECL(uint32_t)        RTCrDigestRetain(RTCRDIGEST hDigest);
     220/**
     221 * Releases a references to the digest.
     222 *
     223 * @returns New reference count. UINT32_MAX if invalid handle.
     224 * @param   hDigest     Handle to the digest.  NIL is ignored (returns 0).
     225 */
    210226RTDECL(uint32_t)        RTCrDigestRelease(RTCRDIGEST hDigest);
     227
     228/**
     229 * Updates the digest with more message data.
     230 *
     231 * @returns IPRT status code.
     232 * @param   hDigest     Handle to the digest.
     233 * @param   pvData      Pointer to the message data.
     234 * @param   cbData      The number of bytes of data @a pvData points to.
     235 */
    211236RTDECL(int)             RTCrDigestUpdate(RTCRDIGEST hDigest, void const *pvData, size_t cbData);
     237
     238/**
     239 * Updates the digest with more message data from the given VFS file handle.
     240 *
     241 * @returns IPRT status code.
     242 * @param   hDigest     Handle to the digest.
     243 * @param   hVfsFile    Handle to the VFS file.
     244 * @param   fRewindFile Rewind to the start of the file if @a true, start
     245 *                      consumption at the current file position if @a false.
     246 */
    212247RTDECL(int)             RTCrDigestUpdateFromVfsFile(RTCRDIGEST hDigest, RTVFSFILE hVfsFile, bool fRewindFile);
    213248
  • trunk/include/iprt/crypto/pkix.h

    r73707 r73819  
    227227     * @param   pvState         The opaque provider state.
    228228     * @param   hKey            The key handle associated with the state at init.
    229      * @param   hDigest         The handle to the digest.  Call RTCrDigestFinal to
     229     * @param   hDigest         The handle to the digest.  Calls RTCrDigestFinal to
    230230     *                          complete and retreive the final hash value.
    231231     * @param   pvSignature     The signature to validate.
     
    251251     * @param   pvState         The opaque provider state.
    252252     * @param   hKey            The key handle associated with the state at init.
    253      * @param   hDigest         The handle to the digest.  Call RTCrDigestFinal to
     253     * @param   hDigest         The handle to the digest.  Calls RTCrDigestFinal to
    254254     *                          complete and retreive the final hash value.
    255255     * @param   pvSignature     The output signature buffer.
     
    335335 *
    336336 * @param   hSignature      The signature schema provider handle.
    337  * @param   hDigest         The handle to the digest.  Call RTCrDigestFinal to
    338  *                          complete and retreive the final hash value.
     337 * @param   hDigest         The handle to the digest.  All that must have been
     338 *                          feed to it via RTCrDigestUpdate() and friends prior
     339 *                          to calling this function.  The function will itself
     340 *                          call RTCrDigestFinal() to complete and retreive the
     341 *                          final hash value.
    339342 * @param   pvSignature     The signature to validate.
    340343 * @param   cbSignature     The size of the signature (in bytes).
     
    360363 *
    361364 * @param   hSignature      The signature schema provider handle.
    362  * @param   hDigest         The handle to the digest.  Call RTCrDigestFinal to
    363  *                          complete and retreive the final hash value.
     365 * @param   hDigest         The handle to the digest.  All that must have been
     366 *                          feed to it via RTCrDigestUpdate() and friends prior
     367 *                          to calling this function.  The function will itself
     368 *                          call RTCrDigestFinal() to complete and retreive the
     369 *                          final hash value.
    364370 * @param   pvSignature     The output signature buffer.
    365371 * @param   pcbSignature    On input the variable pointed to holds the size of
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette