xrootd
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 
21 
22 // The ID must be a unique number
23 #define XrdCryptolocalFactoryID 0
24 
26 {
27 public:
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
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);
43  XrdCryptoCipher *Cipher(int bits, char *pub, int lpub, const char *t = 0);
45 
46  // MsgDigest constructors
47  XrdCryptoMsgDigest *MsgDigest(const char *dgst);
48 
49  // RSA constructors
51  XrdCryptoRSA *RSA(const char *pub, int lpub = 0);
52  XrdCryptoRSA *RSA(const XrdCryptoRSA &r);
53 };
54 
55 #endif