Re: decrypt with a symmetric algorithm

From: Eric Marvets (ericm_at_bangproject.com)
Date: 05/24/04

  • Next message: Robert Strickland: "PGP (Pretty Good Privacy) and .Net Security"
    Date: Mon, 24 May 2004 12:03:30 -0400
    
    

    Yes it should work. It looks like your block sizes are out of wack. It has
    to encrypt and decrypt the data in blocks of a particular size and your IV
    is that size, so I would guess 16 bytes (you did not mentiont the
    algorithm). Can you post your encrypt snippet and decrypt snippet. I
    should be able to spot the problem.

    -- 
    Eric Marvets
    Principal Consultant
    the bang project
    <shameless self promotion>
    Email sales@bangproject.com for Information on Our Architecture and
    Mentoring Services
    </shameless self promotion>
    

  • Next message: Robert Strickland: "PGP (Pretty Good Privacy) and .Net Security"

    Relevant Pages

    • RE: NTE_BAD_DATA
      ... They are NOT used DIRECTLY to encrypt / decrypt data; ... you should generate a RANDOM SESSION KEY and select a SYMMETRIC ENCRYPTION ... // imported from a BLOB read in from the source file or having ...
      (microsoft.public.platformsdk.security)
    • Re: Back Doors
      ... >> Design into the system a master key. ... Encrypt that with public key. ... Decrypt random symmetric key with private key. ...
      (sci.crypt)
    • Re: CAPI and RC4: can not decrypt when Final parameter is set to F
      ... to store ASYMMETRIC key pairs - never symmetric keys like RC4, ... Now when you need to encrypt at one place and decrypt at the other normally ... Get a HCRYPTPROV handle to a key container with CryptAcquireContext ...
      (microsoft.public.platformsdk.security)
    • Re: RSA - Public vs. Private Keys
      ... This is a common pattern for license software ... your client will send a unique machine hash to the ... will let us decrypt with a Public Key (or simply not ... |> RSA is intended to encrypt messages with public keys only. ...
      (microsoft.public.dotnet.security)
    • Re: .NET Crypto Classes Interoperability with Win32 Crypto APIs
      ... when i encrypt a string using .NET classes and try to ... > decrypt it using Win32 APIs, ... > UnicodeEncoding(); ...
      (microsoft.public.dotnet.security)