Bitcoin Forum
December 08, 2016, 08:25:43 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Crypto++ 5.6 ?  (Read 1218 times)
j16sdiz
Jr. Member
*
Offline Offline

Activity: 37


View Profile
December 15, 2010, 09:18:06 AM
 #1

I saw you are using a modified cryptopp 5.6.0,  which disable SSE2 on 32-bit x86.

On the official website, there is a newer version 5.6.1 which fix a few SHA-256 related bug. I guess you may be interested:

- fixed several bugs in the SHA-256 x86/x64 assembly code:
--- incorrect hash on non-SSE2 x86 machines on non-aligned input
--- incorrect hash on x86 machines when input crosses 0x80000000
--- incorrect hash on x64 when compiled with GCC with optimizations enabled

1481228743
Hero Member
*
Offline Offline

Posts: 1481228743

View Profile Personal Message (Offline)

Ignore
1481228743
Reply with quote  #2

1481228743
Report to moderator
1481228743
Hero Member
*
Offline Offline

Posts: 1481228743

View Profile Personal Message (Offline)

Ignore
1481228743
Reply with quote  #2

1481228743
Report to moderator
1481228743
Hero Member
*
Offline Offline

Posts: 1481228743

View Profile Personal Message (Offline)

Ignore
1481228743
Reply with quote  #2

1481228743
Report to moderator
Creating a Bitcoin client that fully implements the network protocol is extremely difficult. Bitcoin-Qt is the only known safe implementation of a full node. Some other projects attempt to compete, but it is not recommended to use such software for anything serious. (Lightweight clients like Electrum and MultiBit are OK.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481228743
Hero Member
*
Offline Offline

Posts: 1481228743

View Profile Personal Message (Offline)

Ignore
1481228743
Reply with quote  #2

1481228743
Report to moderator
1481228743
Hero Member
*
Offline Offline

Posts: 1481228743

View Profile Personal Message (Offline)

Ignore
1481228743
Reply with quote  #2

1481228743
Report to moderator
BioMike
Legendary
*
Offline Offline

Activity: 1258


View Profile
December 15, 2010, 09:25:25 AM
 #2

For the gentoo ebuild I have been using the original thing for some time now (Gentoo policy is not to use bundled libs, as they are a security hazard). No problems encountered in more then a half year.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
December 16, 2010, 04:13:55 AM
 #3


This patch updates part of Crypto++ in bitcoin to upstream:
http://yyz.us/bitcoin/patch.bitcoin-asmfix1


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
j16sdiz
Jr. Member
*
Offline Offline

Activity: 37


View Profile
December 16, 2010, 01:49:40 PM
 #4

I have patched the  "bitcoinr" to use system provided crypto, here is the result:

CPU:  Premium III Mobile  (yes, i know this is very very old)
Compiled with gcc 4.4,  -O3 -msse

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s


Here is the patch to use system-provided cryptopp (if available, with fallback)
https://github.com/j16sdiz/bitcoin-pool/commit/121a0a570bed15fc347cff091e740a02bd8e1a3f
BioMike
Legendary
*
Offline Offline

Activity: 1258


View Profile
December 16, 2010, 02:09:57 PM
 #5

I have patched the  "bitcoinr" to use system provided crypto, here is the result:

CPU:  Premium III Mobile  (yes, i know this is very very old)
Compiled with gcc 4.4,  -O3 -msse

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s


Here is the patch to use system-provided cryptopp (if available, with fallback)
https://github.com/j16sdiz/bitcoin-pool/commit/121a0a570bed15fc347cff091e740a02bd8e1a3f

That's quite a difference.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
December 16, 2010, 07:50:38 PM
 #6

I have patched the  "bitcoinr" to use system provided crypto, here is the result:

CPU:  Premium III Mobile  (yes, i know this is very very old)
Compiled with gcc 4.4,  -O3 -msse

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s

Out of curiosity, what speed do you get from various algorithms in the CPU miner?  That also uses Crypto++ code.

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
j16sdiz
Jr. Member
*
Offline Offline

Activity: 37


View Profile
December 20, 2010, 12:17:07 AM
 #7

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s

Sorry, I was mixing up some binaries. The improvement was not that great. -- in fact, that was statistically insignificant.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!