18#ifndef _DECAF_INTERNAL_SECURITY_PROVIDER_CRYPTO_SHA1MESSAGEDIGESTSPI_H_
19#define _DECAF_INTERNAL_SECURITY_PROVIDER_CRYPTO_SHA1MESSAGEDIGESTSPI_H_
31 class SHA1MessageDigestSpiImpl;
41 SHA1MessageDigestSpi(
const SHA1MessageDigestSpi&);
42 SHA1MessageDigestSpi& operator= (
const SHA1MessageDigestSpi&);
44 SHA1MessageDigestSpiImpl* impl;
64 virtual void engineUpdate(
const unsigned char* input,
int size,
int offset,
int length);
68 virtual void engineUpdate(
const std::vector<unsigned char>& input);
74 virtual int engineDigest(
unsigned char* buffer,
int size,
int offset,
int length);
virtual MessageDigestSpi * clone()
Returns a clone if the implementation supports being cloned.
virtual ~SHA1MessageDigestSpi()
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 bool isCloneable() const
Queries the SPI implementation and returns true if the SPI can be cloned.
Definition SHA1MessageDigestSpi.h:54
virtual std::vector< unsigned char > engineDigest()
Completes the hash computation by performing final operations such as padding.
virtual void engineUpdate(unsigned char input)
Updates the digest using the specified byte.
virtual void engineUpdate(decaf::nio::ByteBuffer &input)
Update the digest using the specified ByteBuffer.
virtual void engineReset()
Resets the digest for further use.
virtual void engineUpdate(const std::vector< unsigned char > &input)
Update the digest using the specified Vector of Bytes.
virtual int engineGetDigestLength()
Returns the digest length in bytes.
virtual int engineDigest(unsigned char *buffer, int size, int offset, int length)
Completes the hash computation by performing final operations such as padding.
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
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25