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

XSECCryptoKeyDSA.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2004 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  * imitations 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.6 2004/02/08 10:23:57 blautenb Exp $
00025  *
00026  */
00027 
00028 #ifndef XSECCRYPTOKEYDSA_INCLUDE
00029 #define XSECCRYPTOKEYDSA_INCLUDE
00030 
00031 #include <xsec/enc/XSECCryptoKey.hpp>
00032 
00044 class DSIG_EXPORT XSECCryptoKeyDSA : public XSECCryptoKey {
00045 
00046 public :
00047 
00050     
00051     XSECCryptoKeyDSA() {};
00052     virtual ~XSECCryptoKeyDSA() {};
00053 
00055 
00058 
00066     virtual XSECCryptoKey::KeyType getKeyType() {return KEY_NONE;}
00067 
00072     virtual XSECCryptoKey * clone() = 0;
00073 
00075 
00081 
00094     virtual bool verifyBase64Signature(unsigned char * hashBuf, 
00095                                  unsigned int hashLen,
00096                                  char * base64Signature,
00097                                  unsigned int sigLen) = 0;
00098 
00115     virtual unsigned int signBase64Signature(unsigned char * hashBuf,
00116         unsigned int hashLen,
00117         char * base64SignatureBuf,
00118         unsigned int base64SignatureBufLen) = 0;
00119 
00121 
00132 
00140     virtual void loadPBase64BigNums(const char * b64, unsigned int len) = 0;
00141 
00149     virtual void loadQBase64BigNums(const char * b64, unsigned int len) = 0;
00150 
00158     virtual void loadGBase64BigNums(const char * b64, unsigned int len) = 0;
00159 
00167     virtual void loadYBase64BigNums(const char * b64, unsigned int len) = 0;
00168 
00176     virtual void loadJBase64BigNums(const char * b64, unsigned int len) = 0;
00177 
00179 };
00180 
00181 
00182 #endif /* XSECCRYPTOKEYDSA_INCLUDE */

Generated on Sun Mar 14 21:35:33 2004 for XML-Security-C by doxygen 1.3.2