Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

XSECCryptoKeyDSA.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  *
00020  * XSECCryptoKeyDSA := DSA Keys
00021  *
00022  * Author(s): Berin Lautenbach
00023  *
00024  * $Id: XSECCryptoKeyDSA.hpp,v 1.8 2005/06/04 11:30:26 blautenb Exp $
00025  *
00026  */
00027 
00028 #ifndef XSECCRYPTOKEYDSA_INCLUDE
00029 #define XSECCRYPTOKEYDSA_INCLUDE
00030 
00031 #include <xsec/enc/XSECCryptoKey.hpp>
00032 
00043 class DSIG_EXPORT XSECCryptoKeyDSA : public XSECCryptoKey {
00044 
00045 public :
00046 
00049     
00050     XSECCryptoKeyDSA() {};
00051     virtual ~XSECCryptoKeyDSA() {};
00052 
00054 
00057 
00065     virtual XSECCryptoKey::KeyType getKeyType() {return KEY_NONE;}
00066 
00071     virtual XSECCryptoKey * clone() = 0;
00072 
00074 
00080 
00093     virtual bool verifyBase64Signature(unsigned char * hashBuf, 
00094                                  unsigned int hashLen,
00095                                  char * base64Signature,
00096                                  unsigned int sigLen) = 0;
00097 
00114     virtual unsigned int signBase64Signature(unsigned char * hashBuf,
00115         unsigned int hashLen,
00116         char * base64SignatureBuf,
00117         unsigned int base64SignatureBufLen) = 0;
00118 
00120 
00131 
00139     virtual void loadPBase64BigNums(const char * b64, unsigned int len) = 0;
00140 
00148     virtual void loadQBase64BigNums(const char * b64, unsigned int len) = 0;
00149 
00157     virtual void loadGBase64BigNums(const char * b64, unsigned int len) = 0;
00158 
00166     virtual void loadYBase64BigNums(const char * b64, unsigned int len) = 0;
00167 
00175     virtual void loadJBase64BigNums(const char * b64, unsigned int len) = 0;
00176 
00178 };
00179 
00180 
00181 #endif /* XSECCRYPTOKEYDSA_INCLUDE */

Generated on Sun Jul 3 17:37:28 2005 for XML-Security-C by  doxygen 1.4.2