activemq-cpp-3.8.2
SHA1MessageDigestSpi.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef _DECAF_INTERNAL_SECURITY_PROVIDER_CRYPTO_SHA1MESSAGEDIGESTSPI_H_
19 #define _DECAF_INTERNAL_SECURITY_PROVIDER_CRYPTO_SHA1MESSAGEDIGESTSPI_H_
20 
21 #include <decaf/util/Config.h>
22 
24 
25 namespace decaf {
26 namespace internal {
27 namespace security {
28 namespace provider {
29 namespace crypto {
30 
31  class SHA1MessageDigestSpiImpl;
32 
39  private:
40 
42  SHA1MessageDigestSpi& operator= (const SHA1MessageDigestSpi&);
43 
44  SHA1MessageDigestSpiImpl* impl;
45 
46  public:
47 
49 
50  virtual ~SHA1MessageDigestSpi();
51 
52  public:
53 
54  virtual bool isCloneable() const {
55  return true;
56  }
57 
58  virtual MessageDigestSpi* clone();
59 
60  virtual int engineGetDigestLength();
61 
62  virtual void engineUpdate(unsigned char input);
63 
64  virtual void engineUpdate(const unsigned char* input, int size, int offset, int length);
65 
66  virtual void engineReset();
67 
68  virtual void engineUpdate(const std::vector<unsigned char>& input);
69 
70  virtual void engineUpdate(decaf::nio::ByteBuffer& input);
71 
72  virtual std::vector<unsigned char> engineDigest();
73 
74  virtual int engineDigest(unsigned char* buffer, int size, int offset, int length);
75 
76  };
77 
78 }}}}}
79 
80 #endif /* _DECAF_INTERNAL_SECURITY_PROVIDER_CRYPTO_SHA1MESSAGEDIGESTSPI_H_ */
This class defines six categories of operations upon byte buffers:
Definition: ByteBuffer.h:97
virtual bool isCloneable() const
Queries the SPI implementation and returns true if the SPI can be cloned.
Definition: SHA1MessageDigestSpi.h:54
#define DECAF_API
Definition: Config.h:29
SHA1 MessageDigestSpi.
Definition: SHA1MessageDigestSpi.h:38
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25
This class defines the Service Provider Interface (SPI) for the MessageDigest class, which provides the functionality of a message digest algorithm, such as MD5 or SHA.
Definition: MessageDigestSpi.h:47