Fix secret and IV sizes