Bitcoin Forum
May 04, 2024, 04:55:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Cobo Wallet:Core Component of Security Chip Open Sourced  (Read 125 times)
Ann1989 (OP)
Jr. Member
*
Offline Offline

Activity: 38
Merit: 10


View Profile
January 15, 2019, 10:17:40 AM
Last edit: January 15, 2019, 10:45:16 AM by Ann1989
 #1

The core component of the Cobo Vault's security chip has been open sourced on GitHub. https://github.com/cobowallet/Cobo-Vault-Security-Chip-Firmware
After looking at the source code, I saw how much the development team values security. In the source code, when using critical data comparison, custom memcmp_ATA () is used instead of the C language implemention memcmp().
Code:
/**memcmp Anti-Timing-Attack*/
bool memcmp_ATA(const uint8_t *buf1, const uint8_t *buf2, uint16_t len)
{
uint16_t i = 0;
bool bIsDiff = false;

for (i=0; i<len; i++)
{
bIsDiff |= (buf1[i]^buf2[i]);
}

return bIsDiff;
}
This prevents timing-attacks when comparing critical information, which effectively protects user data.
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!