Bitcoin Forum
September 27, 2016, 08:41:21 AM *
News: Latest stable version of Bitcoin Core: 0.13.0 (New!) [Torrent]. Make sure you verify it.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: VIA PadLock support. [Reward 50BTC]  (Read 2343 times)
sgtstein
Member
**
Offline Offline

Activity: 61


View Profile
August 05, 2010, 10:39:49 PM
 #1

I have a small reward out for implementing VIA's PadLock technology with the software. If done in a good way that could be used in the SVN for other builders I have a reward for 50BTC. If done even locally for just a few builds or instructions on how to do so, reward is 25 to 50 BTC.

Really want to get this working and don't have the time to put into it right now.
1474965681
Hero Member
*
Offline Offline

Posts: 1474965681

View Profile Personal Message (Offline)

Ignore
1474965681
Reply with quote  #2

1474965681
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1474965681
Hero Member
*
Offline Offline

Posts: 1474965681

View Profile Personal Message (Offline)

Ignore
1474965681
Reply with quote  #2

1474965681
Report to moderator
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
August 06, 2010, 05:14:28 AM
 #2

For anyone tackling this, the Linux kernel's drivers/crypto/padlock-sha.c should be all you need...

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=drivers/crypto/padlock-sha.c;hb=fc1caf6eafb30ea185720e29f7f5eccca61ecd60

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

Activity: 61


View Profile
August 06, 2010, 01:05:46 PM
 #3

Correct. It is well implemented in the Linux Kernel.

I'll be using it on Gentoo x86 with support built in without a module.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
August 06, 2010, 05:45:08 PM
 #4

Correct. It is well implemented in the Linux Kernel.

I'll be using it on Gentoo x86 with support built in without a module.

Anyone implementing it in bitcoin will be unlikely to use the kernel support for anything but as a source for code copying...  One would almost surely link it into the bitcoin binary.

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

Activity: 70


View Profile
August 06, 2010, 05:46:10 PM
 #5

why bother? Via publish an SDK for it.

I should also point out that you will need the lib files for linking.

Bitcoins accepted to 18em7jEuKe1W74ChAZMFShUuqmwudWmpgu Smiley
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
August 06, 2010, 06:16:57 PM
 #6

why bother? Via publish an SDK for it.

I should also point out that you will need the lib files for linking.

The sha256 setup is very likely bitcoin-specific, and you don't need lib files or SDK to simply issue an instruction:
Code:
        asm volatile (".byte 0xf3,0x0f,0xa6,0xd0" /* rep xsha256 */
                      : \
                      : "c"((unsigned long)state.count + count), \
                        "a"((unsigned long)state.count), \
                        "S"(in), "D"(result));


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

Activity: 70


View Profile
August 06, 2010, 10:49:08 PM
 #7

The sha256 setup is very likely bitcoin-specific, and you don't need lib files or SDK to simply issue an instruction:

Sure, you can do it as asm instructions or you can use the SDK to make it more easy to read, it's going to result in the same code in either case.

the bitcoin usage of SHA256 does not prevent you from using Padlock C style functions because they are the same standard of init, update, final.

Bitcoins accepted to 18em7jEuKe1W74ChAZMFShUuqmwudWmpgu Smiley
sgtstein
Member
**
Offline Offline

Activity: 61


View Profile
August 06, 2010, 10:57:21 PM
 #8

The problem that I have had when implementing this is that I do not know enough about SHA256 to implement it. I'm trying to figure it out and learn but haven't been making much success. It's a bit difficult trying to learn and rewrite from the Crypto++ functions and calls. That, and I haven't programmed in C++ or C for a couple years all adds up to me putting this offer out.
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!