Skip to contentSkip to conversation

Asymmetric ciphers: counter measures

DISCUSSION Stephan Mueller 2 participants 2 messages Feb 24, 2016 – Apr 5, 2016 Crypto API

lore
Share & tools
lore
#0 lore raw

Hi Herbert,

currently RSA is implemented as the only asymmetric cipher in software. But others must be expected coming. We have seen the DH patch already.

Albeit software asym ciphers is only a fallback, what is your opinion to cover those implementations with counter measures?

Currently RSA does not implement anything and is even susceptible to timing attacks if I see that right as the leading zeros are stripped. In addition to the leading zeroes problem, blinding comes to mind. If we do blinding, what type of blinding is sufficient for a fallback (base, exponent, modulus)?

Ciao
Stephan

maintainer
#1 lore raw
Quoted 3 lines · Stephan Mueller

Currently RSA does not implement anything and is even susceptible to timing attacks if I see that right as the leading zeros are stripped. In addition to

We should certainly fix this by not stripping the zeroes.

Quoted 2 lines

the leading zeroes problem, blinding comes to mind. If we do blinding, what type of blinding is sufficient for a fallback (base, exponent, modulus)?

It's not just a fallback. If we ever export this to user-space this may become a primary implementation.

Cheers,

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt