ssl_cipher_get_overhead(): Replace size_t with int and add the checks