update to pre-4.87 master
[exim.git] / src / src / pdkim / polarssl / sha1.h
similarity index 94%
rename from src/src/pdkim/sha1.h
rename to src/src/pdkim/polarssl/sha1.h
index 29a9070eb0faf8788961c04ca684a1ee41a9031d..98e8cc45eb824f2b411ef38fe6c56244724a038c 100644 (file)
@@ -22,7 +22,6 @@
  *  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
 
@@ -33,7 +32,6 @@
 #define HAVE_SHA1_CONTEXT
 typedef struct sha1_context sha1_context;
 #endif
-
 struct sha1_context
 {
     unsigned long total[2];     /*!< number of bytes processed  */
@@ -79,7 +77,7 @@ void sha1_finish( sha1_context *ctx, unsigned char output[20] );
  * \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 )
@@ -138,6 +136,13 @@ void sha1_hmac( const unsigned char *key, int keylen,
                 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