Bitcoin Forum
May 28, 2024, 07:24:33 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 ?
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!