From 464504acd3ff0ce80ac2f8d6cabd97665d50f258 Mon Sep 17 00:00:00 2001 From: Nuno Goncalves Date: Sat, 25 Feb 2017 12:27:20 +0100 Subject: Remove verify_end() chained immediatly before end_cons() (close #890) BER_Decoder::end_cons() allready assures the verify_end() function, so it is redundant. Signed-off-by: Nuno Goncalves --- src/lib/pubkey/pbes2/pbes2.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/lib/pubkey/pbes2/pbes2.cpp') diff --git a/src/lib/pubkey/pbes2/pbes2.cpp b/src/lib/pubkey/pbes2/pbes2.cpp index 3f1000170..01bab76bb 100644 --- a/src/lib/pubkey/pbes2/pbes2.cpp +++ b/src/lib/pubkey/pbes2/pbes2.cpp @@ -116,7 +116,6 @@ pbes2_decrypt(const secure_vector& key_bits, .start_cons(SEQUENCE) .decode(kdf_algo) .decode(enc_algo) - .verify_end() .end_cons(); AlgorithmIdentifier prf_algo; @@ -136,7 +135,6 @@ pbes2_decrypt(const secure_vector& key_bits, .decode_optional(prf_algo, SEQUENCE, CONSTRUCTED, AlgorithmIdentifier("HMAC(SHA-160)", AlgorithmIdentifier::USE_NULL_PARAM)) - .verify_end() .end_cons(); const std::string cipher = OIDS::lookup(enc_algo.oid); -- cgit v1.2.3