xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdCrypto
XrdCryptolocalFactory.hh
Go to the documentation of this file.
1
// $Id$
2
#ifndef __CRYPTO_LOCALFACTORY_H__
3
#define __CRYPTO_LOCALFACTORY_H__
4
/******************************************************************************/
5
/* */
6
/* X r d C r y p t o L o c a l F a c t o r y . 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
/* Implementation of the local crypto factory */
17
/* */
18
/* ************************************************************************** */
19
20
#include <
XrdCrypto/XrdCryptoFactory.hh
>
21
22
// The ID must be a unique number
23
#define XrdCryptolocalFactoryID 0
24
25
class
XrdCryptolocalFactory
:
public
XrdCryptoFactory
26
{
27
public
:
28
XrdCryptolocalFactory
();
29
virtual
~XrdCryptolocalFactory
() { }
30
31
// Set trace flags
32
void
SetTrace
(
kXR_int32
trace);
33
34
// Hook to local KDFun
35
XrdCryptoKDFunLen_t
KDFunLen
();
// Length of buffer
36
XrdCryptoKDFun_t
KDFun
();
37
38
// Cipher constructors
39
XrdCryptoCipher
*
Cipher
(
const
char
*t,
int
l = 0);
40
XrdCryptoCipher
*
Cipher
(
const
char
*t,
int
l,
const
char
*k,
41
int
liv,
const
char
*iv);
42
XrdCryptoCipher
*
Cipher
(
XrdSutBucket
*b);
43
XrdCryptoCipher
*
Cipher
(
int
bits,
char
*pub,
int
lpub,
const
char
*t = 0);
44
XrdCryptoCipher
*
Cipher
(
const
XrdCryptoCipher
&c);
45
46
// MsgDigest constructors
47
XrdCryptoMsgDigest
*
MsgDigest
(
const
char
*dgst);
48
49
// RSA constructors
50
XrdCryptoRSA
*
RSA
(
int
bits =
XrdCryptoDefRSABits
,
int
exp =
XrdCryptoDefRSAExp
);
51
XrdCryptoRSA
*
RSA
(
const
char
*pub,
int
lpub = 0);
52
XrdCryptoRSA
*
RSA
(
const
XrdCryptoRSA
&r);
53
};
54
55
#endif
Generated by
1.8.1.2