Bitcoin Forum
October 09, 2024, 11:26:06 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: VIA PadLock support. [Reward 50BTC]  (Read 9145 times)
sgtstein (OP)
Member
**
Offline Offline

Activity: 61
Merit: 10


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.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1099


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, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
sgtstein (OP)
Member
**
Offline Offline

Activity: 61
Merit: 10


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: 1596
Merit: 1099


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, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Olipro
Member
**
Offline Offline

Activity: 70
Merit: 10


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.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1099


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, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Olipro
Member
**
Offline Offline

Activity: 70
Merit: 10


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.
sgtstein (OP)
Member
**
Offline Offline

Activity: 61
Merit: 10


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!