LibreOffice: rtl/digest.h Source File

LibreOffice LibreOffice 24.8 SDK C/C++ API Reference

Loading...
Searching...
No Matches
digest.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20/*
21 * This file is part of LibreOffice published API.
22 */
23
24#ifndef INCLUDED_RTL_DIGEST_H
25#define INCLUDED_RTL_DIGEST_H
26
27#include "sal/config.h"
28
29#include "sal/saldllapi.h"
30#include "sal/types.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
38 typedef void* rtlDigest;
39
40
44 enum __rtl_DigestAlgorithm
45{
46 rtl_Digest_AlgorithmMD2,
47 rtl_Digest_AlgorithmMD5,
48 rtl_Digest_AlgorithmSHA,
49 rtl_Digest_AlgorithmSHA1,
50
51 rtl_Digest_AlgorithmHMAC_MD5,
52 rtl_Digest_AlgorithmHMAC_SHA1,
53
54 rtl_Digest_AlgorithmInvalid,
55 rtl_Digest_Algorithm_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
56};
57
60 typedef enum __rtl_DigestAlgorithm rtlDigestAlgorithm;
61
62
65 enum __rtl_DigestError
66{
67 rtl_Digest_E_None,
68 rtl_Digest_E_Argument,
69 rtl_Digest_E_Algorithm,
70 rtl_Digest_E_BufferSize,
71 rtl_Digest_E_Memory,
72 rtl_Digest_E_Unknown,
73 rtl_Digest_E_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
74};
75
78 typedef enum __rtl_DigestError rtlDigestError;
79
80
87 SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_create (
88 rtlDigestAlgorithm Algorithm
89) SAL_THROW_EXTERN_C();
90
91
96 SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroy (
97 rtlDigest Digest
98) SAL_THROW_EXTERN_C();
99
100
105 SAL_DLLPUBLIC rtlDigestAlgorithm SAL_CALL rtl_digest_queryAlgorithm (
106 rtlDigest Digest
107) SAL_THROW_EXTERN_C();
108
109
114 SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_digest_queryLength (
115 rtlDigest Digest
116) SAL_THROW_EXTERN_C();
117
118
126 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_init (
127 rtlDigest Digest,
128 const sal_uInt8 *pData, sal_uInt32 nDatLen
129) SAL_THROW_EXTERN_C();
130
131
139 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_update (
140 rtlDigest Digest,
141 const void *pData, sal_uInt32 nDatLen
142) SAL_THROW_EXTERN_C();
143
144
157 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_get (
158 rtlDigest Digest,
159 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
160) SAL_THROW_EXTERN_C();
161
162#define RTL_DIGEST_LENGTH_MD2 16
163
172 SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createMD2 (void) SAL_THROW_EXTERN_C();
173
174
178 SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyMD2 (
179 rtlDigest Digest
180) SAL_THROW_EXTERN_C();
181
185 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateMD2 (
186 rtlDigest Digest,
187 const void *pData, sal_uInt32 nDatLen
188) SAL_THROW_EXTERN_C();
189
193 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getMD2 (
194 rtlDigest Digest,
195 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
196) SAL_THROW_EXTERN_C();
197
213 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_MD2 (
214 const void *pData, sal_uInt32 nDatLen,
215 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
216) SAL_THROW_EXTERN_C();
217
218#define RTL_DIGEST_LENGTH_MD5 16
219
228 SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createMD5 (void) SAL_THROW_EXTERN_C();
229
233 SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyMD5 (
234 rtlDigest Digest
235) SAL_THROW_EXTERN_C();
236
240 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateMD5 (
241 rtlDigest Digest,
242 const void *pData, sal_uInt32 nDatLen
243) SAL_THROW_EXTERN_C();
244
248 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getMD5 (
249 rtlDigest Digest,
250 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
251) SAL_THROW_EXTERN_C();
252
261 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_rawMD5 (
262 rtlDigest Digest,
263 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
264) SAL_THROW_EXTERN_C();
265
281 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_MD5 (
282 const void *pData, sal_uInt32 nDatLen,
283 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
284) SAL_THROW_EXTERN_C();
285
286#define RTL_DIGEST_LENGTH_SHA 20
287
299 SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createSHA (void) SAL_THROW_EXTERN_C();
300
308 SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroySHA (
309 rtlDigest Digest
310) SAL_THROW_EXTERN_C();
311
312
320 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateSHA (
321 rtlDigest Digest,
322 const void *pData, sal_uInt32 nDatLen
323) SAL_THROW_EXTERN_C();
324
332 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getSHA (
333 rtlDigest Digest,
334 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
335) SAL_THROW_EXTERN_C();
336
355 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_SHA (
356 const void *pData, sal_uInt32 nDatLen,
357 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
358) SAL_THROW_EXTERN_C();
359
360/*========================================================================
361 *
362 * rtl_digest_SHA1 interface.
363 *
364 *======================================================================*/
365#define RTL_DIGEST_LENGTH_SHA1 20
366
378 SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createSHA1 (void) SAL_THROW_EXTERN_C();
379
387 SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroySHA1 (
388 rtlDigest Digest
389) SAL_THROW_EXTERN_C();
390
398 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateSHA1 (
399 rtlDigest Digest,
400 const void *pData, sal_uInt32 nDatLen
401) SAL_THROW_EXTERN_C();
402
410 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getSHA1 (
411 rtlDigest Digest,
412 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
413) SAL_THROW_EXTERN_C();
414
433 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_SHA1 (
434 const void *pData, sal_uInt32 nDatLen,
435 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
436) SAL_THROW_EXTERN_C();
437
438#define RTL_DIGEST_LENGTH_HMAC_MD5 RTL_DIGEST_LENGTH_MD5
439
449 SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createHMAC_MD5 (void) SAL_THROW_EXTERN_C();
450
454 SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyHMAC_MD5 (
455 rtlDigest Digest
456) SAL_THROW_EXTERN_C();
457
467 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_initHMAC_MD5 (
468 rtlDigest Digest,
469 const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen
470) SAL_THROW_EXTERN_C();
471
475 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateHMAC_MD5 (
476 rtlDigest Digest,
477 const void *pData, sal_uInt32 nDatLen
478) SAL_THROW_EXTERN_C();
479
483 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getHMAC_MD5 (
484 rtlDigest Digest,
485 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
486) SAL_THROW_EXTERN_C();
487
506 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_HMAC_MD5 (
507 const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen,
508 const void *pData, sal_uInt32 nDatLen,
509 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
510) SAL_THROW_EXTERN_C();
511
512#define RTL_DIGEST_LENGTH_HMAC_SHA1 RTL_DIGEST_LENGTH_SHA1
513
527 SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createHMAC_SHA1 (void) SAL_THROW_EXTERN_C();
528
536 SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyHMAC_SHA1 (
537 rtlDigest Digest
538) SAL_THROW_EXTERN_C();
539
553 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_initHMAC_SHA1 (
554 rtlDigest Digest,
555 const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen
556) SAL_THROW_EXTERN_C();
557
565 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateHMAC_SHA1 (
566 rtlDigest Digest,
567 const void *pData, sal_uInt32 nDatLen
568) SAL_THROW_EXTERN_C();
569
577 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getHMAC_SHA1 (
578 rtlDigest Digest,
579 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
580) SAL_THROW_EXTERN_C();
581
603 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_HMAC_SHA1 (
604 const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen,
605 const void *pData, sal_uInt32 nDatLen,
606 sal_uInt8 *pBuffer, sal_uInt32 nBufLen
607) SAL_THROW_EXTERN_C();
608
630 SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_PBKDF2 (
631 sal_uInt8 *pKeyData , sal_uInt32 nKeyLen,
632 const sal_uInt8 *pPassData, sal_uInt32 nPassLen,
633 const sal_uInt8 *pSaltData, sal_uInt32 nSaltLen,
634 sal_uInt32 nCount
635) SAL_THROW_EXTERN_C();
636
637#ifdef __cplusplus
638}
639#endif
640
641#endif // INCLUDED_RTL_DIGEST_H
642
643/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
saldllapi.h
SAL_DLLPUBLIC
#define SAL_DLLPUBLIC
Definition saldllapi.h:34
types.h
SAL_MAX_ENUM
#define SAL_MAX_ENUM
Definition types.h:205
sal_uInt8
unsigned char sal_uInt8
Definition types.h:44
SAL_THROW_EXTERN_C
#define SAL_THROW_EXTERN_C()
Nothrow specification for C functions.
Definition types.h:352
config.h
rtl_digest_destroySHA
SAL_DLLPUBLIC void rtl_digest_destroySHA(rtlDigest Digest) SAL_THROW_EXTERN_C()
Destroy a SHA digest handle.
rtl_digest_init
SAL_DLLPUBLIC rtlDigestError rtl_digest_init(rtlDigest Digest, const sal_uInt8 *pData, sal_uInt32 nDatLen) SAL_THROW_EXTERN_C()
Initialize a digest with given data.
rtl_digest_MD2
SAL_DLLPUBLIC rtlDigestError rtl_digest_MD2(const void *pData, sal_uInt32 nDatLen, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Evaluate a MD2 digest value from given data.
rtl_digest_updateSHA1
SAL_DLLPUBLIC rtlDigestError rtl_digest_updateSHA1(rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) SAL_THROW_EXTERN_C()
Update a SHA1 digest with given data.
rtl_digest_initHMAC_MD5
SAL_DLLPUBLIC rtlDigestError rtl_digest_initHMAC_MD5(rtlDigest Digest, const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen) SAL_THROW_EXTERN_C()
Initialize a HMAC_MD5 digest.
rtl_digest_createHMAC_MD5
SAL_DLLPUBLIC rtlDigest rtl_digest_createHMAC_MD5(void) SAL_THROW_EXTERN_C()
Create a HMAC_MD5 digest handle.
__rtl_DigestError
__rtl_DigestError
Error Code enumeration.
Definition digest.h:66
rtl_Digest_E_Argument
@ rtl_Digest_E_Argument
Definition digest.h:68
rtl_Digest_E_None
@ rtl_Digest_E_None
Definition digest.h:67
rtl_Digest_E_Memory
@ rtl_Digest_E_Memory
Definition digest.h:71
rtl_Digest_E_Unknown
@ rtl_Digest_E_Unknown
Definition digest.h:72
rtl_Digest_E_FORCE_EQUAL_SIZE
@ rtl_Digest_E_FORCE_EQUAL_SIZE
Definition digest.h:73
rtl_Digest_E_Algorithm
@ rtl_Digest_E_Algorithm
Definition digest.h:69
rtl_Digest_E_BufferSize
@ rtl_Digest_E_BufferSize
Definition digest.h:70
rtl_digest_updateHMAC_SHA1
SAL_DLLPUBLIC rtlDigestError rtl_digest_updateHMAC_SHA1(rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) SAL_THROW_EXTERN_C()
Update a HMAC_SHA1 digest with given data.
rtl_digest_createHMAC_SHA1
SAL_DLLPUBLIC rtlDigest rtl_digest_createHMAC_SHA1(void) SAL_THROW_EXTERN_C()
Create a HMAC_SHA1 digest handle.
rtl_digest_MD5
SAL_DLLPUBLIC rtlDigestError rtl_digest_MD5(const void *pData, sal_uInt32 nDatLen, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Evaluate a MD5 digest value from given data.
rtl_digest_queryLength
SAL_DLLPUBLIC sal_uInt32 rtl_digest_queryLength(rtlDigest Digest) SAL_THROW_EXTERN_C()
Query the length of a given digest.
rtlDigestAlgorithm
enum __rtl_DigestAlgorithm rtlDigestAlgorithm
Digest Algorithm type.
Definition digest.h:60
rtl_digest_updateSHA
SAL_DLLPUBLIC rtlDigestError rtl_digest_updateSHA(rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) SAL_THROW_EXTERN_C()
Update a SHA digest with given data.
rtl_digest_create
SAL_DLLPUBLIC rtlDigest rtl_digest_create(rtlDigestAlgorithm Algorithm) SAL_THROW_EXTERN_C()
Create a digest handle for the given algorithm.
rtl_digest_destroy
SAL_DLLPUBLIC void rtl_digest_destroy(rtlDigest Digest) SAL_THROW_EXTERN_C()
Destroy a digest handle.
rtl_digest_createSHA1
SAL_DLLPUBLIC rtlDigest rtl_digest_createSHA1(void) SAL_THROW_EXTERN_C()
Create a SHA1 digest handle.
rtl_digest_HMAC_SHA1
SAL_DLLPUBLIC rtlDigestError rtl_digest_HMAC_SHA1(const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen, const void *pData, sal_uInt32 nDatLen, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Evaluate a HMAC_SHA1 digest value from given data.
rtl_digest_PBKDF2
SAL_DLLPUBLIC rtlDigestError rtl_digest_PBKDF2(sal_uInt8 *pKeyData, sal_uInt32 nKeyLen, const sal_uInt8 *pPassData, sal_uInt32 nPassLen, const sal_uInt8 *pSaltData, sal_uInt32 nSaltLen, sal_uInt32 nCount) SAL_THROW_EXTERN_C()
Password-Based Key Derivation Function.
rtl_digest_destroySHA1
SAL_DLLPUBLIC void rtl_digest_destroySHA1(rtlDigest Digest) SAL_THROW_EXTERN_C()
Destroy a SHA1 digest handle.
rtl_digest_update
SAL_DLLPUBLIC rtlDigestError rtl_digest_update(rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) SAL_THROW_EXTERN_C()
Update a digest with given data.
rtl_digest_destroyMD2
SAL_DLLPUBLIC void rtl_digest_destroyMD2(rtlDigest Digest) SAL_THROW_EXTERN_C()
Destroy a MD2 digest handle.
rtl_digest_getSHA1
SAL_DLLPUBLIC rtlDigestError rtl_digest_getSHA1(rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Finalize a SHA1 digest and retrieve the digest value.
rtl_digest_createSHA
SAL_DLLPUBLIC rtlDigest rtl_digest_createSHA(void) SAL_THROW_EXTERN_C()
Create a SHA digest handle.
rtl_digest_updateMD5
SAL_DLLPUBLIC rtlDigestError rtl_digest_updateMD5(rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) SAL_THROW_EXTERN_C()
Update a MD5 digest with given data.
rtl_digest_createMD5
SAL_DLLPUBLIC rtlDigest rtl_digest_createMD5(void) SAL_THROW_EXTERN_C()
Create a MD5 digest handle.
rtl_digest_updateHMAC_MD5
SAL_DLLPUBLIC rtlDigestError rtl_digest_updateHMAC_MD5(rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) SAL_THROW_EXTERN_C()
Update a HMAC_MD5 digest with given data.
rtl_digest_getMD2
SAL_DLLPUBLIC rtlDigestError rtl_digest_getMD2(rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Finalize a MD2 digest and retrieve the digest value.
rtl_digest_updateMD2
SAL_DLLPUBLIC rtlDigestError rtl_digest_updateMD2(rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) SAL_THROW_EXTERN_C()
Update a MD2 digest with given data.
rtl_digest_getSHA
SAL_DLLPUBLIC rtlDigestError rtl_digest_getSHA(rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Finalize a SHA digest and retrieve the digest value.
rtl_digest_getHMAC_MD5
SAL_DLLPUBLIC rtlDigestError rtl_digest_getHMAC_MD5(rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Finalize a HMAC_MD5 digest and retrieve the digest value.
rtl_digest_HMAC_MD5
SAL_DLLPUBLIC rtlDigestError rtl_digest_HMAC_MD5(const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen, const void *pData, sal_uInt32 nDatLen, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Evaluate a HMAC_MD5 digest value from given data.
rtl_digest_SHA1
SAL_DLLPUBLIC rtlDigestError rtl_digest_SHA1(const void *pData, sal_uInt32 nDatLen, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Evaluate a SHA1 digest value from given data.
rtl_digest_get
SAL_DLLPUBLIC rtlDigestError rtl_digest_get(rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Finalize a digest and retrieve the digest value.
rtl_digest_queryAlgorithm
SAL_DLLPUBLIC rtlDigestAlgorithm rtl_digest_queryAlgorithm(rtlDigest Digest) SAL_THROW_EXTERN_C()
Query the algorithm of a given digest.
rtl_digest_destroyHMAC_SHA1
SAL_DLLPUBLIC void rtl_digest_destroyHMAC_SHA1(rtlDigest Digest) SAL_THROW_EXTERN_C()
Destroy a HMAC_SHA1 digest handle.
rtl_digest_destroyHMAC_MD5
SAL_DLLPUBLIC void rtl_digest_destroyHMAC_MD5(rtlDigest Digest) SAL_THROW_EXTERN_C()
Destroy a HMAC_MD5 digest handle.
rtlDigestError
enum __rtl_DigestError rtlDigestError
Error Code type.
Definition digest.h:78
rtl_digest_destroyMD5
SAL_DLLPUBLIC void rtl_digest_destroyMD5(rtlDigest Digest) SAL_THROW_EXTERN_C()
Destroy a MD5 digest handle.
rtl_digest_initHMAC_SHA1
SAL_DLLPUBLIC rtlDigestError rtl_digest_initHMAC_SHA1(rtlDigest Digest, const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen) SAL_THROW_EXTERN_C()
Initialize a HMAC_SHA1 digest.
__rtl_DigestAlgorithm
__rtl_DigestAlgorithm
Digest Algorithm enumeration.
Definition digest.h:45
rtl_Digest_AlgorithmHMAC_SHA1
@ rtl_Digest_AlgorithmHMAC_SHA1
Definition digest.h:52
rtl_Digest_AlgorithmSHA
@ rtl_Digest_AlgorithmSHA
Definition digest.h:48
rtl_Digest_AlgorithmHMAC_MD5
@ rtl_Digest_AlgorithmHMAC_MD5
Definition digest.h:51
rtl_Digest_AlgorithmMD2
@ rtl_Digest_AlgorithmMD2
Definition digest.h:46
rtl_Digest_AlgorithmMD5
@ rtl_Digest_AlgorithmMD5
Definition digest.h:47
rtl_Digest_Algorithm_FORCE_EQUAL_SIZE
@ rtl_Digest_Algorithm_FORCE_EQUAL_SIZE
Definition digest.h:55
rtl_Digest_AlgorithmSHA1
@ rtl_Digest_AlgorithmSHA1
Definition digest.h:49
rtl_Digest_AlgorithmInvalid
@ rtl_Digest_AlgorithmInvalid
Definition digest.h:54
rtl_digest_rawMD5
SAL_DLLPUBLIC rtlDigestError rtl_digest_rawMD5(rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Retrieve the raw (not finalized) MD5 digest value.
rtl_digest_getHMAC_SHA1
SAL_DLLPUBLIC rtlDigestError rtl_digest_getHMAC_SHA1(rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Finalize a HMAC_SHA1 digest and retrieve the digest value.
rtl_digest_SHA
SAL_DLLPUBLIC rtlDigestError rtl_digest_SHA(const void *pData, sal_uInt32 nDatLen, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Evaluate a SHA digest value from given data.
rtl_digest_createMD2
SAL_DLLPUBLIC rtlDigest rtl_digest_createMD2(void) SAL_THROW_EXTERN_C()
Create a MD2 digest handle.
rtlDigest
void * rtlDigest
Digest Handle opaque type.
Definition digest.h:38
rtl_digest_getMD5
SAL_DLLPUBLIC rtlDigestError rtl_digest_getMD5(rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
Finalize a MD5 digest and retrieve the digest value.