Changeset 73819 in vbox
- Timestamp:
- Aug 22, 2018 9:02:04 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 124509
- Location:
- trunk/include/iprt/crypto
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/crypto/digest.h
r73705 r73819 206 206 */ 207 207 RTDECL(int) RTCrDigestClone(PRTCRDIGEST phDigest, RTCRDIGEST hSrc); 208 /** 209 * Resets the digest to start calculating a new digest. 210 */ 208 211 RTDECL(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 */ 209 219 RTDECL(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 */ 210 226 RTDECL(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 */ 211 236 RTDECL(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 */ 212 247 RTDECL(int) RTCrDigestUpdateFromVfsFile(RTCRDIGEST hDigest, RTVFSFILE hVfsFile, bool fRewindFile); 213 248 -
trunk/include/iprt/crypto/pkix.h
r73707 r73819 227 227 * @param pvState The opaque provider state. 228 228 * @param hKey The key handle associated with the state at init. 229 * @param hDigest The handle to the digest. Call RTCrDigestFinal to229 * @param hDigest The handle to the digest. Calls RTCrDigestFinal to 230 230 * complete and retreive the final hash value. 231 231 * @param pvSignature The signature to validate. … … 251 251 * @param pvState The opaque provider state. 252 252 * @param hKey The key handle associated with the state at init. 253 * @param hDigest The handle to the digest. Call RTCrDigestFinal to253 * @param hDigest The handle to the digest. Calls RTCrDigestFinal to 254 254 * complete and retreive the final hash value. 255 255 * @param pvSignature The output signature buffer. … … 335 335 * 336 336 * @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. 339 342 * @param pvSignature The signature to validate. 340 343 * @param cbSignature The size of the signature (in bytes). … … 360 363 * 361 364 * @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. 364 370 * @param pvSignature The output signature buffer. 365 371 * @param pcbSignature On input the variable pointed to holds the size of
Note:
See TracChangeset
for help on using the changeset viewer.