* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-
#ifndef POLARSSL_SHA1_H
#define POLARSSL_SHA1_H
#define HAVE_SHA1_CONTEXT
typedef struct sha1_context sha1_context;
#endif
-
struct sha1_context
{
unsigned long total[2]; /*!< number of bytes processed */
* \param ilen length of the input data
* \param output SHA-1 checksum result
*/
-void sha1( const unsigned char *input, int ilen, unsigned char output[20] );
+void polarssl_sha1( const unsigned char *input, int ilen, unsigned char output[20] );
/**
* \brief Output = SHA-1( file contents )
const unsigned char *input, int ilen,
unsigned char output[20] );
+/**
+ * \brief Checkup routine
+ *
+ * \return 0 if successful, or 1 if the test failed
+ */
+int sha1_self_test( int verbose );
+
#ifdef __cplusplus
}
#endif