Bitcoin Forum
May 09, 2024, 09:46:34 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum encryption AES256-CBC  (Read 118 times)
AlzoxX76 (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
August 18, 2018, 07:05:22 PM
 #1

Hi,


Why use CBC mode for encrypt wallet ? The random access was not necessary right ? So why not use PCBC mode ?
1715247994
Hero Member
*
Offline Offline

Posts: 1715247994

View Profile Personal Message (Offline)

Ignore
1715247994
Reply with quote  #2

1715247994
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715247994
Hero Member
*
Offline Offline

Posts: 1715247994

View Profile Personal Message (Offline)

Ignore
1715247994
Reply with quote  #2

1715247994
Report to moderator
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
August 19, 2018, 11:06:21 AM
 #2

Why use CBC mode for encrypt wallet ?

Why should one not use CBC to encrypt the private keys ?
Block cipher should be favored in a use case of a wallet. And since CBC doesn't have any important downside, why not.



The random access was not necessary right ?

With 'random access' you probably mean the possibility to parallel the encryption/decryption?
No, this is not necessary since you are never en-/decrypting a lot of data.



So why not use PCBC mode ?

Why should PCBC be used ?

There is a  problem with PCBC.
Swapping 2 ciphertext blocks will result in the incorrect decryption of the 2 corresponding plaintext blocks.
But due to the nature of plaintext XOR ciphertext the error cancels in PCBC mode.
So if the integrity checker only looks at the last few blocks it could be fooled to accept a partially corrupted message.

That's one of the reasons why Kerberos switched from PCBC to CBC in version 5.


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!