lib/ccrypto/ruby/engines/pkcs7_engine.rb in ccrypto-ruby-0.1.0 vs lib/ccrypto/ruby/engines/pkcs7_engine.rb in ccrypto-ruby-0.1.1
- old
+ new
@@ -134,9 +134,10 @@
teLogger.debug "Application given cipher : #{cipher}"
end
cipher = "AES-256-CBC" if is_empty?(cipher)
+ teLogger.debug "Setting P7 encryption cipher #{cipher}"
cip = OpenSSL::Cipher.new(cipher)
begin
OpenSSL::PKCS7.encrypt(recps, val, cip, OpenSSL::PKCS7::BINARY)
rescue OpenSSL::PKCS7::PKCS7Error => ex