Re: recompressing the deflate streams in a PDF



On Mar 27, 6:02 pm, byaa...@xxxxxxxxx wrote:

Finally, just out of curiosity, just how exactly are the signatures
generated? Are they closed (unknown) algorithms? Or do they rely on
some sort of shared key?

http://en.wikipedia.org/wiki/Public_key_cryptography
http://en.wikipedia.org/wiki/Digital_signature

First, public key cryptography involves an algorithm that uses two
keys: one for encrypting and another for decrypting. The algorithm is
sufficiently complex that it is infeasible to compute the decryption
key even if when the encryption key is known (and vice versa).

When PKC is used, I can publish my public key and keep my private key
to myself. If you want to send me something securely, then you encrypt
it using my public key; only I can decrypt it.

Digital signatures adapt this idea somewhat. Instead of encrypting the
whole document using a public key, I encrypt a *hash* of the document
I'm signing using my *private* key. The encrypted hash forms my
signature. Anybody can then *decrypt* the signature using my public
key, and know that *only* I could have created the signature because
*only* I have my private key.

.



Relevant Pages

  • Re: Using CryptoStream
    ... You don't bother spending time trying to decrypt something that cannot possibly be encrypted ... As soon as the decrypted stream can be recognized as invalid, ... The main difference is that you have to do this verification anyway, so the work to implement the code is already done, whereas adding a signature just adds to the code you have to include. ... I mentioned decrypting as the only reliable way to know whether you can avoid _encrypting_ something. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Checking a foolproof algorithm.
    ... > with a limited length of decimals which actually drives the algorithm ... cipher you certainly don't want to re-use your keys... ... if you're not encrypting it then you're ... supposed to decrypt the message without the key (which is in the ...
    (sci.crypt)
  • Re: rsa implementation question
    ... > There is a notion of blocks in many public-key ciphers, ... It's not about decrypting to sign, encrypting to ... as it would mean that you'd have to find hash collisions. ... I generate a signature for a string "some string" with SHA. ...
    (comp.lang.python)
  • RE: Problem while decrypting
    ... Decrypt will decrypt ANY GARBAGE ... in CBC mode a block error affects only two ... simple hash: attach the hash value of the original data at the end, ... > i was encrypting the data using the pass phrase. ...
    (microsoft.public.platformsdk.security)
  • ACT MASK DriveEncription Trashed My Drive
    ... ACT MASK DriveEncription Trashed My Drive ... for my number which I put in and my mistake was encrypting my drive ... DiskEncryption 4.01 Download ... decrypt it first, then update to 4.01 ...
    (microsoft.public.win2000.security)