Bitcoin Forum
June 26, 2024, 07:31:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Private keys, 256 bits?  (Read 1052 times)
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1255


May Bitcoin be touched by his Noodly Appendage


View Profile
March 30, 2013, 04:09:16 PM
 #1

Hi all
I just asked Openssl to create a new DSA pkey of 256 bits.
This is what it answers:
Quote
private key length is too short; it needs to be at least 384 bits, not 256
Looks like it comes from here, where (newkey < MIN_KEY_LENGTH) is false because MIN_KEY_LENGTH=384

So what is happening here? Am I doing something wrong? Bitcoin uses a modified version of Openssl?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Zeilap
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
March 30, 2013, 04:22:33 PM
 #2

Bitcoin uses ECDSA.
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1255


May Bitcoin be touched by his Noodly Appendage


View Profile
March 30, 2013, 04:24:04 PM
Last edit: March 30, 2013, 04:46:48 PM by jackjack
 #3

Oh wow I didn't even check if they were the same... That seemed obvious to me
I feel dumb, but well, thanks!

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
etotheipi
Legendary
*
expert
Offline Offline

Activity: 1428
Merit: 1093


Core Armory Developer


View Profile WWW
March 30, 2013, 04:32:38 PM
 #4

Bitcoin uses ECDSA.

This.

ECDSA was picked for Bitcoin because it has much shorter keylengths than other digital signing scheme/crypto schemes.   For instance, all the following keylengths are approximately equal in terms of mathematical entropy:

--3,072-bit RSA key
--256-bit ECDSA key
--128-bit AES key

There is no doubt that an AES 128 key is sufficient protection, probably for decades, if not longer (protection against well-funded attacker with a billion dollars of computing resources)

Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
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!