aes 128 ecb detection function and test