Zero length input check on ECB code