xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdCrypto
XrdCryptoMsgDigest.hh
Go to the documentation of this file.
1
// $Id$
2
#ifndef __CRYPTO_MSGDGST_H__
3
#define __CRYPTO_MSGDGST_H__
4
/******************************************************************************/
5
/* */
6
/* X r d C r y p t o M s g D i g e s t . h h */
7
/* */
8
/* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
9
/* All Rights Reserved. See XrdInfo.cc for complete License Terms */
10
/* Produced by Andrew Hanushevsky for Stanford University under contract */
11
/* DE-AC03-76-SFO0515 with the Department of Energy */
12
/******************************************************************************/
13
14
/* ************************************************************************** */
15
/* */
16
/* Abstract interface for Message Digest crypto functionality. */
17
/* Allows to plug-in modules based on different crypto implementation */
18
/* (OpenSSL, Botan, ...) */
19
/* */
20
/* ************************************************************************** */
21
22
#include <
XrdCrypto/XrdCryptoBasic.hh
>
23
24
// ---------------------------------------------------------------------------//
25
//
26
// Message Digest abstract buffer
27
//
28
// ---------------------------------------------------------------------------//
29
class
XrdCryptoMsgDigest
:
public
XrdCryptoBasic
30
{
31
32
public
:
33
XrdCryptoMsgDigest
() :
XrdCryptoBasic
() { }
34
virtual
~XrdCryptoMsgDigest
() { }
35
36
// Validity
37
virtual
bool
IsValid
();
38
39
// Methods
40
virtual
int
Reset
(
const
char
*dgst);
41
virtual
int
Update
(
const
char
*b,
int
l);
42
virtual
int
Final
();
43
44
// Equality operator
45
bool
operator==
(
const
XrdCryptoMsgDigest
md);
46
};
47
48
#endif
Generated by
1.8.1.2