Re: Signing and encrypting software
- From: Noob <root@xxxxxxxxx>
- Date: Thu, 29 Sep 2011 14:35:37 +0200
Noob wrote:
Noob wrote:
Jonathan Wilson wrote:
Benjamin Kreuter wrote:
Really, whether this makes sense depends on what security properties you
need in your system. If someone forwards a signed, unencrypted copy of
the message to another person, is that a problem? If someone applies
their own signature to an encrypted message, is that a problem? Are you
worried about a malicious receiver publishing a specially crafted public
key, that could be used to substitute an arbitrary plain-text if you use
simple encrypt-then-sign? What you will want to do will depend on what
it is that you are trying to enforce.
Since the device is a satellite TV receiver with keys embedded in the
firmware, there is no risk of malicious keys. It seems here like the goals are:
1. To ensure that the unencrypted software can't be obtained outside
of the device
2. To verify that the software sent to the device (and running on it)
has not been tampered with
Right.
Encryption is required by the CA(*) operator because, IMO, they don't
want people reverse-engineering the security library they provide to
STB manufacturers. I suppose our PHB finds comfort in the fact that
"no one can copy our code".
(*) http://en.wikipedia.org/wiki/Conditional_access
Interestingly, not all CA operators require the firmware to be
encrypted. I suppose some are more confident than others ;-)
I saw a requirement that "the RSA implementation may not use the CRT."
Can someone explain why they would require this?
Does someone know if LTC/LTM uses the CRT in RSASSA-PSS mode?
Anyone?
Going back to my original query, "encrypt then sign" has a minor
performance advantage over "sign then encrypt" in that, if the
software has been tampered with, this will be detected in the
signature verification, and decryption can be skipped; whereas
decryption is always needed if encryption came last.
Let's add compression to the mix.
There are 3 operations to perform
Sign (S), Encrypt (E), Compress (C)
(I know that C must happen before E.)
My preference goes to C,E,S
that is (compress, then encrypt, then sign)
because if the data has been tampered with, that will be detected
at the first step, and decrypt+decompress can be avoided
Thoughts?
Regards.
.
- References:
- Signing and encrypting software
- From: Noob
- Re: Signing and encrypting software
- From: ashwood
- Re: Signing and encrypting software
- From: Earl_Colby_Pottinger
- Re: Signing and encrypting software
- From: Benjamin Kreuter
- Re: Signing and encrypting software
- From: Jonathan Wilson
- Re: Signing and encrypting software
- From: Noob
- Re: Signing and encrypting software
- From: Noob
- Signing and encrypting software
- Prev by Date: Re: Looking for a fast implementation of a hash algorithim
- Next by Date: Re: The Most Profound Distillation of the Feedack from Modern Cyptography.
- Previous by thread: Re: Signing and encrypting software
- Next by thread: SSL-SHA1-HMAC
- Index(es):
Relevant Pages
|