Hello, I have a question about Des decryption.
snmp agent v3 Settings:
Auth Protocol: HMACMD5
Privacy Protocol: CBC-DES
snmp2 client Settings:
let security = Security::new(b"****", b"****")
.with_auth_protocol(AuthProtocol::Md5)
.with_auth(Auth::AuthPriv { cipher: Cipher::Des, privacy_password: b"*****".to_vec() });
An error occurred when decrypting the response data:
error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:cryptoevpevp_enc.c:612:
After I modified part of the source code, the error disappeared:
// v3.rs -> Security -> decrypt_des
let mut crypter =
openssl::symm::Crypter::new(cipher, openssl::symm::Mode::Decrypt, des_key, Some(&iv))?;
crypter.pad(false); // add new
Is this a problem? Or can I have other Settings that I don't know?
Thanks.
Hello, I have a question about Des decryption.
snmp agent v3 Settings:
Auth Protocol: HMACMD5
Privacy Protocol: CBC-DES
snmp2 client Settings:
An error occurred when decrypting the response data:
error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:cryptoevpevp_enc.c:612:After I modified part of the source code, the error disappeared:
Is this a problem? Or can I have other Settings that I don't know?
Thanks.