[Mesa-dev] [PATCH] mesa: Add mesa SHA-1 functions

Carl Worth cworth at cworth.org
Wed Jan 7 11:11:14 PST 2015


On Wed, Jan 07 2015, Jose Fonseca wrote:
> I lost bit track of email over the Christmas period.  Just noticed I had 
> flagged this one for replay. Sorry.

No worries. Thanks for following up now. :-)

> Do you still need me to test anything on Windows? If so are the patches 
> in some pull-able git repos by any chance?

Yes, some testing on Windows would be great. I've got these patches
here:

	git://people.freedesktop.org/~cworth/mesa

And testing that the build works fine with or without one of the
potential Windows crypto libraries available would be great. Look for
lines like the following in the configure output:

        Shader cache:    yes
        With SHA1 from:  libnettle

And you can manually control this by passing options such as:

	./configure --disable-shader-cache

or:

	./configure --enable-shader-cache --with-sha1=CryptoAPI

The possible values for --with-sha1 are listed in "./configure --help"
and include the following:

	libc, libmd, libnettle, libgcrypt, libcrypto, libsha1,
	CommonCrypto, CryptoAPI

As I said earlier in the thread, I've tested libnettle, libgcrypt, and
libcrypto on my Linux machine. So any touch testing of any of the other
options, (particularly those available only on Windows), would be great.

In that branch, there's not actually any code that calls into any of the
sha1 functions. So you'll basically just be testing configuration,
building, and linking. If you'd like to go the extra step and verify
that the code can be called and actually do something, then you could
use something like the attached patch which simply prints the computed
sha1 for any compiled shader.

Please let me know if you have any questions, and what testing results
you get.

Thanks,

-Carl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Exercise-the-recently-added-sha1-code.patch
Type: text/x-diff
Size: 1681 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150107/3727a0ed/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150107/3727a0ed/attachment.sig>


More information about the mesa-dev mailing list