RE: Need help on snmpv3 AuthPrev trap
"Gaikwad, Rupesh" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <BC72F99748A5974BBA6FDB0A8568B52901286FF5DF03@PUNCCRPRD01.adprod.bmc.com> |
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:[email protected]]
Sent: Tuesday, September 15, 2009 9:40 PM
To: Gaikwad, Rupesh
Cc: Mike Ayers; [email protected]
Subject: Re: Need help on snmpv3 AuthPrev trap
>>>>> On Tue, 15 Sep 2009 15:05:10 +0530, "Gaikwad, Rupesh" <[email protected]> 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® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users