2

I search for a quick way of calling a sha-1 function in WINDOWS c.
I tried openssl, but I found no current windows static lib file to download (libcrypto.lib), compiling from source is no quick option for me.

On the website http://www.packetizer.com/security/sha1/ I found a c implementation of sha-1 (Paul E. Jones).

It is only one c file (sha1.c) with 370 lines of code and one header file, so it seems pretty easy to include into my source code.

Concerning this implementation I have the following question:

1) The source code is copyrighted under FPL (Freeware Public License). I have looked at http://opensource.org/licenses/alphabetical for Freeware Public License, but I did not find it.

The licence file in the source says:

This software is licensed as "freeware."  Permission to distribute
this software in source and binary forms, including incorporation 
into other products, is hereby granted without a fee.  THIS SOFTWARE 
IS PROVIDED 'AS IS' AND WITHOUT ANY EXPRESSED OR IMPLIED WARRANTIES, 
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 
AND FITNESS FOR A PARTICULAR PURPOSE.  THE AUTHOR SHALL NOT BE HELD 
LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE, EITHER 
DIRECTLY OR INDIRECTLY, INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA 
OR DATA BEING RENDERED INACCURATE.

So it seems that this license is permissive like BSD, MIT or Apache license. Is this right? Or is the license similar to GPL or LGPL?

2) Does somebody know if this is a reliable implementation?

Thanks alot in advance

4

1 回答 1

2

1)看起来你可以将它包含在你的程序中是的。许可证没有说明任何关于修改代码的内容,因此您应该避免这样做(但鉴于这是一个密码学问题,无论如何这都是个好建议)。

2)不知道

于 2013-03-28T15:43:48.577 回答