b6697e9 Rewrite parsing of enveloped-data using NSS

Authored and Committed by nalin 9 years ago
    Rewrite parsing of enveloped-data using NSS
    
    Rewrite parsing of enveloped-data when we're using keys with NSS.  To
    bypass NSS's insistence that we have a recipient certificate that's
    stored in a token (i.e., a temporary certificate won't do), we decrypt
    the bulk key using the private key, and then re-encrypt it with a
    throwaway RSA public key, then decrypt the whole thing using the
    corresponding private key.  This lets us avoid having to drive the bulk
    decryption ourselves.
    
        
file modified
+2 -0
file modified
+1 -29
file modified
+156 -173
file modified
+3 -0