Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit b01b7c9

Browse files
authored
Code cleanup
1 parent dbeb8cd commit b01b7c9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/mcapi/encryption/crypto/jwe-crypto.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,7 @@ def decrypt_data(encrypted_data:)
9999
cipher.decrypt
100100
cipher.key = cek
101101
cipher.iv = iv
102-
if enc_method == "A256GCM"
103-
cipher.auth_data = encrypted_header
104-
cipher.auth_tag = cipher_tag
105-
elsif enc_method == "A128GCM"
106-
cipher.auth_data = encrypted_header
107-
cipher.auth_tag = cipher_tag
108-
elsif enc_method == "A192GCM"
102+
if enc_method == "A256GCM" || enc_method == "A128GCM" || enc_method == "A192GCM"
109103
cipher.auth_data = encrypted_header
110104
cipher.auth_tag = cipher_tag
111105
end

0 commit comments

Comments
 (0)