Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jessevdp committed Apr 24, 2024
1 parent c3943f4 commit 36aaaf3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/jose/jwe/alg_xc20p_kw.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def key_encrypt(key, enc, decrypted_key)
key = key.kty.derive_key
end
new_alg = JOSE::JWE::ALG_XC20P_KW.new(cipher_name, bits, iv || SecureRandom.random_bytes(24))
derived_key = key
aad = ''
plain_text = decrypted_key
cipher_text, new_alg.tag = JOSE.xchacha20poly1305_module().xchacha20poly1305_aead_encrypt(key, new_alg.iv, aad, plain_text)
Expand Down

0 comments on commit 36aaaf3

Please sign in to comment.