Hi Wes, 
Thanks for your reply. 
Actually, I am trying with a perl script directly to decrypt the incoming 
encrypted data by using 

"use Crypt::CBC;"
..
..
ScopedPduData ::= CHOICE {
           plaintext    ScopedPDU,
           encryptedPDU OCTET STRING  
       }
..
my $msgData = $msg->{msgData};
...

my $var4 = $msgData->{encryptedPDU};
..

my $encryptedPDU = $msgData->{encryptedPDU};
my $cipher = Crypt::CBC->new( -key    => 'my_password',
                             -cipher => 'Blowfish'
                            );

    
my $data = $cipher->decrypt($encryptedPDU);
..

Is it the right way to decrypt the data? 
What approach shall you suggest if we want to decrypt?
Your help appreciated!

Best regards,
Rupesh


-----Original Message-----
From: Wes Hardaker [mailto:harda...@users.sourceforge.net] 
Sent: Tuesday, September 15, 2009 9:40 PM
To: Gaikwad, Rupesh
Cc: Mike Ayers; net-snmp-users@lists.sourceforge.net
Subject: Re: Need help on snmpv3 AuthPrev trap

>>>>> On Tue, 15 Sep 2009 15:05:10 +0530, "Gaikwad, Rupesh" 
>>>>> <rupesh_gaik...@bmc.com> said:

RG> I am trying to decrypt the encryptedPDU. 

RG> my $var4 = $msgData->{encryptedPDU};

Which perl module are you using to receive the notifications?  That
doesn't look like our supported modules.

All of our code handles the decryption in the C-bindings before handing
it off to perl.
-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to