Bitcoin Forum
May 05, 2024, 01:03:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: About Wallet.dat password AES.256.CBC "Initialization Vector"  (Read 67 times)
mamuu (OP)
Member
**
Offline Offline

Activity: 71
Merit: 19


View Profile
January 15, 2024, 02:41:11 PM
 #1


When a wallet file is encrypted in bitcoin core, it uses an AES.256.CBC standard encryption.

When the password is decrypted, when the correct password is entered correctly, the password is not requested to be re-entered for the specified time or the password can be changed. AES.256.CBC is used in all of these stages.

I don't understand whether Bircoin Core interferes with the process of AES.256.CBC when encrypting or decrypting wallet.dat, when we look at the process of AES.256.CBC, without the "Initialization Vector", the process does not start and this is not a hidden information.
I could not find the initialization vector in the wallet.dat file. A separate calculation is made. When I used pywallet, it did not share me this "Initialization Vector".

Can someone who has knowledge about this issue enlighten?

Thank you.

1DWA3Sa8i6eHVWV4AG4UP2SBhYB2XrfiHW
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714914213
Hero Member
*
Offline Offline

Posts: 1714914213

View Profile Personal Message (Offline)

Ignore
1714914213
Reply with quote  #2

1714914213
Report to moderator
1714914213
Hero Member
*
Offline Offline

Posts: 1714914213

View Profile Personal Message (Offline)

Ignore
1714914213
Reply with quote  #2

1714914213
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
January 15, 2024, 04:01:12 PM
Merited by mamuu (1)
 #2

It uses the first 16 bytes of the double sha256 of the public key as the IV.

mamuu (OP)
Member
**
Offline Offline

Activity: 71
Merit: 19


View Profile
January 15, 2024, 09:03:14 PM
 #3

but there are multiple wallet addresses in wallet.dat
When encrypting wallet.dat, shouldn't we think only on a file basis? For example, if a wallet.dat has 5 wallet addresses, we cannot say that we only apply AES.256.CBC for one wallet address and do not encrypt the remaining 4. so the operation with password applies to the entire file. not for the address.

Thank you for the answer.

1DWA3Sa8i6eHVWV4AG4UP2SBhYB2XrfiHW
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
January 16, 2024, 01:18:06 AM
 #4

but there are multiple wallet addresses in wallet.dat
When encrypting wallet.dat, shouldn't we think only on a file basis? For example, if a wallet.dat has 5 wallet addresses, we cannot say that we only apply AES.256.CBC for one wallet address and do not encrypt the remaining 4. so the operation with password applies to the entire file. not for the address.
Each private key is encrypted individually. The wallet file is not encrypted as a whole.

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!