activemq-cpp-3.9.5
MD5MessageDigestSpi.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_MD5MESSAGEDIGESTSPI_H_
19#define _DECAF_INTERNAL_SECURITY_PROVIDER_CRYPTO_MD5MESSAGEDIGESTSPI_H_
20
21#include <decaf/util/Config.h>
22
24
25namespace decaf {
26namespace internal {
27namespace security {
28namespace provider {
29namespace crypto {
30
31 class MD5MessageDigestSpiImpl;
32
38 class DECAF_API MD5MessageDigestSpi : public decaf::security::MessageDigestSpi {
39 private:
40
41 MD5MessageDigestSpi(const MD5MessageDigestSpi&);
42 MD5MessageDigestSpi& operator= (const MD5MessageDigestSpi&);
43
44 MD5MessageDigestSpiImpl* impl;
45
46 public:
47
49
51
52 public:
53
54 virtual bool isCloneable() const {
55 return true;
56 }
57
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
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_MD5MESSAGEDIGESTSPI_H_ */
virtual int engineGetDigestLength()
Returns the digest length in bytes.
virtual bool isCloneable() const
Queries the SPI implementation and returns true if the SPI can be cloned.
Definition MD5MessageDigestSpi.h:54
virtual void engineUpdate(decaf::nio::ByteBuffer &input)
Update the digest using the specified ByteBuffer.
virtual void engineUpdate(const std::vector< unsigned char > &input)
Update the digest using the specified Vector of Bytes.
virtual void engineUpdate(unsigned char input)
Updates the digest using the specified byte.
virtual std::vector< unsigned char > engineDigest()
Completes the hash computation by performing final operations such as padding.
virtual int engineDigest(unsigned char *buffer, int size, int offset, int length)
Completes the hash computation by performing final operations such as padding.
virtual void engineUpdate(const unsigned char *input, int size, int offset, int length)
Updates the digest using the specified array of bytes, starting at the specified offset.
virtual MessageDigestSpi * clone()
Returns a clone if the implementation supports being cloned.
virtual void engineReset()
Resets the digest for further use.
This class defines six categories of operations upon byte buffers:
Definition ByteBuffer.h:98
This class defines the Service Provider Interface (SPI) for the MessageDigest class,...
Definition MessageDigestSpi.h:47
#define DECAF_API
Definition Config.h:29
Definition MD4MessageDigestSpi.h:29
Definition MD4MessageDigestSpi.h:28
Definition Engine.h:31
Definition AprPool.h:26
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25