MIN_KEY_SIZE
if (ret < 0 || keylen < MIN_KEY_SIZE || keylen > MAX_KEY_SIZE)
if (data_len < MIN_KEY_SIZE || data_len > MAX_KEY_SIZE) {