S/MIME should not support weak crypto
Categories
(MailNews Core :: Security: S/MIME, defect, P3)
Tracking
(Not tracked)
People
(Reporter: rrelyea, Unassigned, NeedInfo)
References
Details
(Whiteboard: [psm-smime])
Comment 1•24 years ago
|
||
Comment 3•24 years ago
|
||
Comment 4•24 years ago
•
|
||
Comment 7•24 years ago
|
||
Comment 8•22 years ago
|
||
Updated•19 years ago
|
Comment 9•18 years ago
|
||
Comment 10•18 years ago
|
||
Comment 11•18 years ago
|
||
Updated•15 years ago
|
Comment 12•6 years ago
|
||
Which ones are considered weak today?
Comment 13•5 years ago
|
||
Updated•4 years ago
|
Comment 14•3 years ago
|
||
@mkmelin (In reply to Magnus Melin [:mkmelin] from comment #12)
Which ones are considered weak today?
According to the S/MIME V4.0 RFC:
Algorithms such as RC2 are considered to be weak encryption algorithms. Algorithms such as TripleDES are not state of the art and are considered to be weaker algorithms than AES.
It also says that AES-128 GCM and AES-256 GCM must be supported and ChaCha20-Poly1305 should also. It doesn't say anything about AES-256 CBC but AES-128 CBC must be supported so I guess the same applies to the same algorithm with stronger keys. According to the RFC v3.2 AES-192 CBC and AES-256 CBC should be supported.
https://datatracker.ietf.org/doc/html/rfc8551#section-2.7
So to answer your question I would say these are considered weak today:
- SMIME_RC2_CBC_40
- SMIME_DES_CBC_56
- SMIME_RC2_CBC_64
- SMIME_RC2_CBC_128
- SMIME_DES_EDE3_168
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 15•2 years ago
•
|
||
Based on https://searchfox.org/mozilla-central/rev/e409c755f313f6befb2c00f260bf873ccc191924/security/nss/lib/smime/smimeutil.c#113-117 and https://searchfox.org/mozilla-central/rev/e409c755f313f6befb2c00f260bf873ccc191924/security/nss/lib/pkcs7/secmime.c#361,383 it seems we're still using algorithms we shouldn't?
Comment 16•2 years ago
|
||
Hmm, why don't the links from comment 15 work for me? Is searchfox service disrupted in some way?
Comment 17•2 years ago
|
||
Gah, can't permalink to /mozilla/ parts of comm-central searchfox. I've updated the links so they work now.
Description
•