def decode_aes256_plain_auto(data, encryption_key):
assert isinstance(data, bytes)<EOL>length = len(data)<EOL>if length == <NUM_LIT:0>:<EOL><INDENT>return b'<STR_LIT>'<EOL><DEDENT>elif data[<NUM_LIT:0>] == b'<STR_LIT:!>'[<NUM_LIT:0>] and length % <NUM_LIT:16> == <NUM_LIT:1> and length > <NUM_LIT:32>:<EOL><INDENT>return decode_aes256_cbc_plain(data, encryption_key)<EOL><DEDENT>else:<EOL><INDENT>return decode_aes256_ecb_plain(data, encryption_key)<EOL><DEDENT>
Guesses AES cipher (EBC or CBD) from the length of the plain data.